isCompact property

bool? isCompact
final

If compactBreakpointWidth is null, then specifies whether or not primary items should be displayed in compact mode (CommandBarItemDisplayMode.inPrimaryCompact) or normal mode CommandBarItemDisplayMode.inPrimary.

This can be useful if the CommandBar is used in a setting where compactBreakpointWidth cannot be used (i.e. because using LayoutBuilder cannot be used in a context where the intrinsic height is also calculated), and you want to specify whether or not the primary items should be compact or not.

If compactBreakpointWidth is not null this field is ignored.

Implementation

final bool? isCompact;