startChangeNotify method

Future<bool> startChangeNotify()

Enables asset change notifications.

Make sure you've added at least one callback function for changes.

Implementation

Future<bool> startChangeNotify() async {
  final bool result = await plugin.notifyChange(start: true);
  if (result) {
    _channel.setMethodCallHandler(_notify);
    _controller.add(true);
  }
  return result;
}