PersistedAppState constructor

const PersistedAppState(
  1. {Key key,
  2. PersistedStateStorage storage: const JsonFileStorage(),
  3. Duration saveTimeout: const Duration(milliseconds: 500),
  4. @required Widget child}
)

Implementation

const PersistedAppState({
  Key key,
  this.storage = const JsonFileStorage(),
  this.saveTimeout = const Duration(milliseconds: 500),
  @required this.child,
})  : assert(storage != null && child != null),
      super(key: key);