artboardByName method Null safety

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.firstWhereOrNull((a) => a.name == name);