SideItemModel class

Constructors

SideItemModel({required Widget? page, required IconData icon, String? iconTitle, dynamic onMostVisible()?, dynamic lostFocus()?, dynamic onTap()?, Color defaultIconColor = Colors.black, Color focusBackgroundColor = Colors.white, Color focusIconColor = Colors.black, Color focusTextColor = Colors.black})

Properties

defaultIconColor Color
Default color of the icon when the page is not the most visible
final
focusBackgroundColor Color
Background color of the navigation item when the corresponding page is focused
final
focusIconColor Color
Icon color of the navigation item when the corresponding page is focused
final
focusTextColor Color
Text color of the navigation item when the corresponding page is focused
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData
Icon showed according to the page in the navigation
final
iconTitle String?
Used as a complement of the icon
final
lostFocus → (dynamic Function()?)
Used for specific development when the widget lost focus
final
mostVisible bool
If the page is the most visible, mostVisible = true
getter/setter pair
onMostVisible → (dynamic Function()?)
Used for specific development when the widget is the most visible
final
onTap → (dynamic Function()?)
Used for specific development when the user click on the icon in the navigation
final
page Widget?
Widget to show
final
props List<Object?>
You can compare your side_item_model thanks to Equatable plugin
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
visibilityPercentage double
Visibility percentage shown of the page (From 0.0 to 100%)
getter/setter pair

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