isDirectChild method

bool isDirectChild(
  1. Type state
)

Returns true if the given state is a direct child of this StateDefinition.

Implementation

bool isDirectChild(Type state) =>
    childStateDefinitions.map((sd) => sd.stateType).contains(state);