MasterItem class
Describes the configuration for an item in the master list shown as a List Tile.
- Inheritance
-
- Object
- MasterItemBase
- MasterItem
Constructors
- MasterItem(String title, {DetailsBuilder? detailsBuilder, String? subtitle, GestureTapCallback? onTap, Widget? leading, Widget? trailing})
-
Creates a MasterItem. If you don't provide a detailsBuilder you need to
onTap.
Usage:
const
Properties
- detailsBuilder → DetailsBuilder?
-
A builder functions that constructs a details page. The details page
should use MasterDetailsFlowSettings to adapt and function.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- leading → Widget?
-
ListTile.leading and ListTile.trailing corespondents
final
- onTap → GestureTapCallback?
-
An override for the onTap callback so the list tile doesn't open a details
page.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle → String?
-
The optional subtitle showed in the list tile
final
- title → String
-
The title showed in the list tile
final
- trailing → Widget?
-
ListTile.leading and ListTile.trailing corespondents
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