WidgetHelpers class

Constructors

WidgetHelpers()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

ifElseChain(Iterable<SwitchCase> ifElseChains, Widget elseBuilder()) Widget
ifElseChainMultiChild(Iterable<SwitchCaseMultiChild> ifElseChains, Iterable<Widget> elseBuilder()) List<Widget>
ifTrue(bool condition, Widget trueWidget(), Widget falseWidget()) Widget
mapToWidgetList<T extends Widget, D>(Iterable items, T map(D item, int index)) List<T>
onPlatformProperty({dynamic ios(), dynamic android(), dynamic windows(), dynamic mac(), dynamic linux()}) → dynamic
onPlatformWidget({Widget ios(), Widget android(), Widget windows(), Widget mac(), Widget linux()}) Widget
switchValue(dynamic value, Widget defaultWidgetBuilder(), Iterable<SwitchCase> cases) Widget
when(String value, Widget widget, Widget defaultWidget) Widget