You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
359 B
19 lines
359 B
|
|
import 'dart:async'; |
|
|
|
import 'package:flutter/services.dart'; |
|
|
|
class Min { |
|
static const MethodChannel _channel = |
|
const MethodChannel('min'); |
|
|
|
static Future<bool> initialize() async { |
|
final bool isInit = await _channel.invokeMethod('initialize'); |
|
return isInit; |
|
} |
|
|
|
static startMin() async { |
|
_channel.invokeMethod('startMin'); |
|
} |
|
|
|
}
|
|
|