NmCommandPaletteState class

State for the command palette.

Constructors

NmCommandPaletteState({bool isOpen = false, String query = '', int selectedIndex = 0, List<NmPaletteCommand> filteredCommands = const []})
Creates a NmCommandPaletteState.
const

Properties

filteredCommands → List<NmPaletteCommand>
Filtered commands.
final
hashCode → int
The hash code for this object.
no setterinherited
isOpen → bool
Is open.
final
query → String
Query.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedCommand → NmPaletteCommand?
Selected command.
no setter
selectedIndex → int
Selected index.
final

Methods

copyWith({bool? isOpen, String? query, int? selectedIndex, List<NmPaletteCommand>? filteredCommands}) → NmCommandPaletteState
Copy with.
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