IfStrategy class

Proxies method calls to one of substrategies basing on the test function.

Implemented types
Annotations
  • @JS()

Constructors

IfStrategy(bool test(), Strategy trueBranch, Strategy falseBranch)
factory
IfStrategy.fakeConstructor$()

Properties

falseBranch Strategy
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
test bool Function()
getter/setter pair
trueBranch Strategy
getter/setter pair

Methods

connect(num minPriority, Function callback) StrategyRunner
override
isSupported() bool
override
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