stepBack method

CubicPath? stepBack()

Removes last Path. returns removed CubicPath.

Implementation

CubicPath? stepBack() {
  if (_paths.isNotEmpty) {
    final path = _paths.removeLast();
    notifyListeners();

    return path;
  }

  return null;
}