removeSubgoal method

Goal removeSubgoal(
  1. Goal goal
)

Removes a subgoal from this instance.

Implementation

Goal removeSubgoal(Goal goal ) {
	final index = subgoals.indexOf( goal );
	subgoals.removeAt( index );

	return this;
}