firstOf static method

The first ReleasePackerDartBuildCli in commands, or null.

Implementation

static ReleasePackerDartBuildCli? firstOf(
  Iterable<ReleasePackerCommand>? commands,
) => commands?.whereType<ReleasePackerDartBuildCli>().firstOrNull;