SailorOptions class

Options to configure a Sailor instance.

Constructors

SailorOptions({bool handleNameNotFoundUI = false, bool isLoggingEnabled = false, List<SailorTransition> defaultTransitions, Duration defaultTransitionDuration, Curve defaultTransitionCurve, CustomSailorTransition customTransition, GlobalKey<NavigatorState> navigatorKey})
const

Properties

customTransition CustomSailorTransition
Provide a custom transition to sailor instead of using inbuilt transitions, if not provided, sailor 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<SailorTransition>
Default transitions for all the routes. Whatever transitions are provided in this list will be applied to every page launched using Sailor.
final
handleNameNotFoundUI bool
final
hashCode int
The hash code for this object.
read-onlyinherited
isLoggingEnabled bool
Should display logs in console. Sailor prints some useful logs which can be helpful during development.
final
A navigator key lets Sailor grab the NavigatorState from a MaterialApp or a CupertinoApp. All navigation operations (push, pop, etc) are carried out using this NavigatorState.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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