SeafarerOptions class
Options to configure a seafarer instance.
Constructors
-
SeafarerOptions({bool handleNameNotFoundUI = false, bool isLoggingEnabled = false, List<
SeafarerTransition> ? defaultTransitions, Duration? defaultTransitionDuration, Curve? defaultTransitionCurve, CustomSeafarerTransition? customTransition, }) -
const
Properties
- customTransition → CustomSeafarerTransition?
-
Provide a custom transition to seafarer instead of using
inbuilt transitions, if not provided, seafarer will revert
to use its default transitions or delegate to system's own
transitions.
final
- defaultTransitionCurve → Curve?
-
Default curve for all the transitions.
final
- defaultTransitionDuration → Duration?
-
Default duration for all the transitions.
final
-
defaultTransitions
→ List<
SeafarerTransition> ? -
Default transitions for all the routes.
Whatever transitions are provided in this list will be
applied to every page launched using seafarer.
final
- handleNameNotFoundUI → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoggingEnabled → bool
-
Should display logs in console. seafarer prints some useful logs
which can be helpful during development.
final
-
A navigator key lets seafarer grab the
NavigatorState
from a MaterialApp or a CupertinoApp. All navigation operations (push, pop, etc) are carried out using thisNavigatorState
.final - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited