feat:参照研听的基础工程
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'flutter_paid_platform_interface.dart';
|
||||
|
||||
/// An implementation of [FlutterPaidPlatform] that uses method channels.
|
||||
class MethodChannelFlutterPaid extends FlutterPaidPlatform {
|
||||
/// The method channel used to interact with the native platform.
|
||||
@visibleForTesting
|
||||
final methodChannel = const MethodChannel('flutter_paid');
|
||||
|
||||
@override
|
||||
Future<String?> getPlatformVersion() async {
|
||||
final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
|
||||
return version;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<String?> paid() async {
|
||||
final paid = await methodChannel.invokeMethod<String>('paid');
|
||||
return paid;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user