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() async { _channel.invokeMethod('startMin'); } }