flush method
See BooleanMaths.flush.
Implementation
@override
Future<bool> flush({required Duration timeout}) async {
final bool? flushed = await _invoke<bool>('flush', <String, Object?>{
// Seconds rather than milliseconds: the iOS SDK takes a `TimeInterval`,
// and the standard codec has no Duration.
'timeoutSeconds': timeout.inMilliseconds / 1000.0,
});
return flushed ?? false;
}