ElementNode class sealed
- Implemented types
- Available extensions
- Annotations
-
- @freezed
Constructors
- ElementNode.component({required int level, required int index, required String id, required String title, @Default(true) bool isExpanded, required Component component})
-
constfactory
- ElementNode.documentation({required int level, required int index, required String id, required String title, @Default(false) bool isExpanded, required Component component, required DocumentEntry document})
-
constfactory
- ElementNode.folder({required int level, required int index, required String id, required String title, required bool isExpanded})
-
constfactory
- ElementNode.module({required int level, required int index, required String id, required String title, required bool isExpanded})
-
constfactory
- ElementNode.root({required int level, required int index, required String id, required String title, required bool isExpanded})
-
constfactory
- ElementNode.story({required int level, required int index, required String id, required String title, @Default(false) bool isExpanded, required Component component, required Story story})
-
constfactory
Properties
-
copyWith
→ $ElementNodeCopyWith<
ElementNode> -
Create a copy of ElementNode
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- index → int
-
no setterinherited
- isExpanded → bool
-
no setterinherited
- level → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
no setterinherited
Methods
-
buildLeading(
BuildContext context, WidgetRef ref, {bool? expanded}) → Widget -
buildTitle(
BuildContext context, WidgetRef ref) → Widget -
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.
inherited
-
map<
TResult extends Object?> ({required TResult root(RootNode value), required TResult module(ModuleNode value), required TResult folder(FolderNode value), required TResult component(ComponentNode value), required TResult documentation(DocumentationNode value), required TResult story(StoryNode value)}) → TResult -
Available on ElementNode, provided by the ElementNodePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? root(RootNode value)?, TResult? module(ModuleNode value)?, TResult? folder(FolderNode value)?, TResult? component(ComponentNode value)?, TResult? documentation(DocumentationNode value)?, TResult? story(StoryNode value)?}) → TResult? -
Available on ElementNode, provided by the ElementNodePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> ({TResult root(RootNode value)?, TResult module(ModuleNode value)?, TResult folder(FolderNode value)?, TResult component(ComponentNode value)?, TResult documentation(DocumentationNode value)?, TResult story(StoryNode value)?, required TResult orElse()}) → TResult -
Available on ElementNode, provided by the ElementNodePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> ({TResult root(int level, int index, String id, String title, bool isExpanded)?, TResult module(int level, int index, String id, String title, bool isExpanded)?, TResult folder(int level, int index, String id, String title, bool isExpanded)?, TResult component(int level, int index, String id, String title, bool isExpanded, Component component)?, TResult documentation(int level, int index, String id, String title, bool isExpanded, Component component, DocumentEntry document)?, TResult story(int level, int index, String id, String title, bool isExpanded, Component component, Story story)?, required TResult orElse()}) → TResult -
Available on ElementNode, provided by the ElementNodePatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
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 brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
when<
TResult extends Object?> ({required TResult root(int level, int index, String id, String title, bool isExpanded), required TResult module(int level, int index, String id, String title, bool isExpanded), required TResult folder(int level, int index, String id, String title, bool isExpanded), required TResult component(int level, int index, String id, String title, bool isExpanded, Component component), required TResult documentation(int level, int index, String id, String title, bool isExpanded, Component component, DocumentEntry document), required TResult story(int level, int index, String id, String title, bool isExpanded, Component component, Story story)}) → TResult -
Available on ElementNode, provided by the ElementNodePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? root(int level, int index, String id, String title, bool isExpanded)?, TResult? module(int level, int index, String id, String title, bool isExpanded)?, TResult? folder(int level, int index, String id, String title, bool isExpanded)?, TResult? component(int level, int index, String id, String title, bool isExpanded, Component component)?, TResult? documentation(int level, int index, String id, String title, bool isExpanded, Component component, DocumentEntry document)?, TResult? story(int level, int index, String id, String title, bool isExpanded, Component component, Story story)?}) → TResult? -
Available on ElementNode, provided by the ElementNodePatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited