iosWebViewFix/example/flutter_plugin/lib/flutter_plugin.dart

18 lines
417 B
Dart

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