@override Future<void> flush() async { if (Platform.isIOS) { methodChannel .invokeMethod('flush'); } else if (Platform.isAndroid) { methodChannel .invokeMethod('flush'); } }