import 'dart:async'; import 'package:flutter/services.dart'; class Min { static const MethodChannel _channel = const MethodChannel('min'); static Future initialize() async { final bool isInit = await _channel.invokeMethod('initialize'); return isInit; } static startMin(appid, token) async { _channel.invokeMethod('startMin', { "appid":appid, "token":token }); } static Future reloadWgt(appid, wgtPath) async { final bool isReload = await _channel.invokeMethod( 'reloadWgt', {"appid": appid, "wgtPath": wgtPath}); return isReload; } static clickListener() { _channel.invokeMethod('clickListener'); } }