ProgressCallback typedef Realm

ProgressCallback = void Function(SyncProgress syncProgress)

The signature of a callback that will be executed while the Realm is opened asynchronously with Realm.open. This is the registered onProgressCallback when calling Realm.open that receives progress notifications while the download is in progress.

  • syncProgress - an object of SyncProgress that contains transferredBytes and transferableBytes.

Implementation

typedef ProgressCallback = void Function(SyncProgress syncProgress);