Story<TWidget extends Widget, TArgs extends StoryArgs<TWidget>> class abstract

Annotations

Constructors

Story({String? name, String? designLink, SetupBuilder<TWidget, TArgs> setup = defaultSetup, required TArgs args, required ArgsBuilder<TWidget, TArgs> argsBuilder})
const

Properties

$name String?
final
args → TArgs
final
argsBuilder ArgsBuilder<TWidget, TArgs>
final
final
hashCode int
The hash code for this object.
no setterinherited
name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setup SetupBuilder<TWidget, TArgs>
final

Methods

build(BuildContext context) Widget
buildWithArgs(BuildContext context, TArgs args) Widget
Same as build, but uses external args instead of Story.args.
init({required String name}) Story<TWidget, TArgs>
Creates a copy of this using the provided name for late initialization. If $name was already set, it should have precedence over name.
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

Static Methods

defaultSetup(BuildContext context, Widget widget, dynamic args) Widget