flush method

  1. @override
Future<bool> flush({
  1. required Duration timeout,
})
override

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;
}