CommandBarSeparator class
Separators for grouping command bar items. Set the color property to Colors.transparent to render the separator as space. Uses a Divider under the hood, consequently uses the closest DividerThemeData.
See also:
- CommandBar, which is a collection of CommandBarItems.
- CommandBarButton, an item for a button with an icon and/or label.
- Divider, used to render the separator
- Inheritance
-
- Object
- CommandBarItem
- CommandBarSeparator
Constructors
- CommandBarSeparator({Key? key, Color? color, double? thickness, Axis direction = Axis.vertical})
-
Creates a command bar item separator.
const
Properties
- color → Color?
-
Override the color used by the Divider.
final
- direction → Axis
-
The direction of the separator. Defaults to Axis.vertical.
This attribute is opposite to
CommandBar. direction
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thickness → double?
-
Override the separator thickness.
final
Methods
-
build(
BuildContext context, CommandBarItemDisplayMode displayMode) → Widget -
Builds the final widget for this display mode for this item.
Sub-classes implement this to build the widget that is appropriate
for the given display mode.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited