NyProvider class abstract

Base class for Providers.

Providers are used to bootstrap and configure your application. They are booted in the order they are defined in the providers map.

Lifecycle:

  1. setup - Initialize your provider (runs during app startup)
  2. boot - Called after all providers have finished setup
  3. dispose - Called when the app is shutting down (optional cleanup)

Constructors

NyProvider()

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

boot(Nylo nylo) Future<void>
Called after all providers have finished setup. Use this for initialization that depends on other providers being ready.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setup(Nylo nylo) Future<Nylo?>
Setup method is used for initializing code in your application. Return the Nylo instance to pass it to the next provider.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited