MinimalFilter class

One count filter: a quiet word with its mono count beside it (Open 2). The selected filter takes an ink hairline and the ink at medium weight, as a chosen chip does; the rest print in the secondary ink on nothing at all.

A set of them lives in a MinimalFilterBar, one selected at a time, the page holding the index.

MinimalFilter('Open', count: 2, selected: view == 1, onPressed: () => setView(1))
Inheritance

Constructors

MinimalFilter(String label, {Key? key, int? count, IconData? icon, Widget? leading, bool selected = false, VoidCallback? onPressed, FocusNode? focusNode, bool autofocus = false})
A filter saying label.
const

Properties

autofocus → bool
Whether it takes keyboard focus when it first appears.
final
count → int?
How many records the filter keeps, printed in mono after the label; null prints none.
final
focusNode → FocusNode?
Its focus node, for a caller that moves focus to it; null keeps one of its own.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
A glyph before the label, for filters by kind.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String
What it filters by.
final
leading → Widget?
A drawn mark before the label in place of icon — a filter by status leads with the state's own glyph: leading: MinimalStatusIcon(MinimalTaskStatus.done, size: 14).
final
onPressed → VoidCallback?
Null disables the filter (a view with nothing to show yet).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
Whether it is on.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

height → const double
The filter's height: a small control's.