getTask method

GrinderTask getTask (String name)

Get the task with the given name. Returns null if none found.

Implementation

GrinderTask getTask(String name) =>
    _tasks.firstWhere((t) => t.name == name, orElse: () => null);