RouterOptions class

Router options.

Options

  • path refers to the path name where your app files are located. If your files are located on main domain/sub domain then you don't have to fiddle with it. But if your files are situated in a sub directory/path on a domain, for example, x.com/y_folder/index.html then set routingPath to /y_folder:

    RouterOptions(
      ...
      path: '/y_folder',
      ...
    )
    
  • enableHashBasedRouting enables auto hash prefix in path.

Constructors

RouterOptions({required String path, required bool enableHashBasedRouting})
const

Properties

enableHashBasedRouting bool
Whether to enable hash based routing.
final
hashCode int
The hash code for this object.
no setterinherited
path String
Routing path.
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