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 getPlatformVersion() async { final version = await methodChannel.invokeMethod('getPlatformVersion'); return version; } @override Future paid() async { final paid = await methodChannel.invokeMethod('paid'); return paid; } }