flush static method

Future<void> flush()

Implementation

static Future<void> flush() async {
  try {
    await _channel.invokeMethod('flush');
  } on PlatformException catch (e) {
    // ignore: avoid_print
    print('Failed to flush events: ${e.message}');
  }
}