AppService class abstract interface

A core contract defining the lifecycle of a long-running service or component within the application.

Implementations of AppService are typically responsible for managing resources, subscriptions, streams, or background tasks that need explicit initiation and termination.

This contract helps ensure controlled resource management and application shutdown procedures.

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
start() → void
Initializes and starts the service, setting up necessary resources and starting background tasks or listeners.
stop() → void
Stops the service and releases all managed resources (e.g., closing database connections, canceling streams, disposing controllers).
toString() String
A string representation of this object.
inherited

Operators

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