setLabel method

Future<Null> setLabel(
  1. String label
)
override

Set a label to stored data NOTE: You need to set a method channel before using this method.

Implementation

Future<Null> setLabel(String label) async {
  if (_channel == null) {
    print("Please set a method channel before use the start method.");
    return null;
  }
  try {
    return await _channel?.invokeMethod('set_label', {"labeel": label});
  } on PlatformException catch (e) {
    print(e.message);
  }
}