BloomBootstrapper class abstract
Contract for custom user bootstrapper code in lib/app/boot.dart.
Implement this class to register custom services, repositories, or runtime initialization before the Flutter widget tree is mounted.
Example:
class AppBootstrapper extends BloomBootstrapper {
const AppBootstrapper();
@override
Future<void> onBoot(BloomContainer container) async {
container.provideSingleton<AuthService>(() => AuthService());
}
}
Constructors
- BloomBootstrapper()
-
Creates a BloomBootstrapper.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBoot(
BloomContainer container) → FutureOr< void> - Invoked during the framework boot sequence before the widget tree is mounted.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited