isDirectChild method
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);
Returns true if the given state
is a direct child
of this StateDefinition.
bool isDirectChild(Type state) =>
childStateDefinitions.map((sd) => sd.stateType).contains(state);