SimpleHookContext<R> constructor

SimpleHookContext<R>(
  1. R _build(), {
  2. bool init = true,
  3. bool shouldRebuild = true,
  4. Map<Type, Object?> provided = const {},
})

Implementation

SimpleHookContext(
  this._build, {
  bool init = true,
  this.shouldRebuild = true,
  Map<Type, Object?> provided = const {},
}) : _provided = Map.of(provided) {
  if (init) _scheduler(rebuild);
}