IfStrategy constructor

IfStrategy(
  1. bool test(),
  2. Strategy trueBranch,
  3. Strategy falseBranch
)

Implementation

external factory IfStrategy(
    bool Function() test, Strategy trueBranch, Strategy falseBranch);