Future<void> startTraining(int type) async { await mConnMethodChannel .invokeMethod("startTraining", <String, int>{"type": type}); }