Tab class

Constructors

Tab({Key? key, Widget? icon = const FlutterLogo(), required Widget text, IconData? closeIcon = Icons.close, VoidCallback? onClosed, String? semanticLabel})
const

Properties

closeIcon IconData?
The close icon of the tab. Usually an IconButton widget
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
The leading icon of the tab. FlutterLogo is used by default
final
onClosed VoidCallback?
Called when the close button is called or when the shortcut Ctrl + T or Ctrl + F4 is executed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
Semantic label for the input.
final
text Widget
The text of the tab. Usually a Text widget
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