import 'dart:async'; import 'package:flutter/services.dart'; class FlutterPlugin { static const MethodChannel _channel = const MethodChannel('flutter_plugin'); static Future get platformVersion async { final String version = await _channel.invokeMethod('getPlatformVersion'); return version; } static Future open() async { return await _channel.invokeMethod('open'); } }