startObserve static method

Future<String> startObserve()

Implementation

static Future<String> startObserve() async {
  try {
    final result = await _channel.invokeMethod('observe');
    String response = result.toString();
    return response;
  } on PlatformException catch (e) {
    return "Failed to Invoke: '${e.message}'.";
  }
}