ISpectifyBlocSettings class
Configuration settings for controlling Bloc lifecycle logging.
The ISpectifyBlocSettings class allows customization of what types of Bloc lifecycle events should be logged and how the logs should be formatted.
Constructors
- ISpectifyBlocSettings({bool enabled = true, bool printEvents = true, bool printTransitions = true, bool printChanges = true, bool printEventFullData = true, bool printStateFullData = true, bool printCreations = true, bool printClosings = true, bool transitionFilter(Bloc bloc, Transition transition)?, bool eventFilter(Bloc bloc, Object? event)?})
-
Creates an instance of ISpectifyBlocSettings.
const
Properties
- enabled → bool
-
Whether logging is enabled.
final
- eventFilter → bool Function(Bloc bloc, Object? event)?
-
A filter function for events.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- printChanges → bool
-
Whether to log state changes.
final
- printClosings → bool
-
Whether to log Bloc closing events.
final
- printCreations → bool
-
Whether to log Bloc creation events.
final
- printEventFullData → bool
-
Whether to log full event data.
final
- printEvents → bool
-
Whether to log events received by the Bloc.
final
- printStateFullData → bool
-
Whether to log full state data.
final
- printTransitions → bool
-
Whether to log state transitions.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionFilter → bool Function(Bloc bloc, Transition transition)?
-
A filter function for state transitions.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited