artboardByName method

Artboard artboardByName(
  1. String name
)

Returns an artboard from the specified name, or null if no artboard with that name exists in the file

Implementation

Artboard artboardByName(String name) =>
    _artboards.firstWhere((a) => a.name == name, orElse: () => null);