flush method

Future<BKTResult<void>> flush()

Implementation

Future<BKTResult<void>> flush() async {
  /// The native code may emit `BKTException`, so we must use `BKTResult` for handle exception
  return statusGuard(
    await _invokeMethod(CallMethods.flush.name),
  );
}