ComicNavItem class

One application destination, with its labels, glyph and activation callback.

Constructors

ComicNavItem({required String label, required String short, required IconData icon, VoidCallback? onPressed, Key? key, String? badge, String? badgeLabel})
Creates a ComicNavItem.
const

Properties

badge → String?
Printed count or an empty string for a dot; spoken with the destination.
final
badgeLabel → String?
Printed count or an empty string for a dot; spoken with the destination.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
The optional glyph beside the words.
final
key → Key?
The key assigned to the destination’s tap target.
final
label → String
label in the masthead; short under the icon in the tab bar.
final
onPressed → VoidCallback?
Called when activated; null disables the action.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
short → String
label in the masthead; short under the icon in the tab bar.
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