parseAspect function

Aspect? parseAspect(
  1. String? aspect
)

The Aspect for an --aspect value, or null (the composition's declared size wins) for null/empty. Throws an ArgumentError when the name is not an Aspect.

Implementation

Aspect? parseAspect(String? aspect) =>
    aspect == null || aspect.isEmpty ? null : Aspect.values.byName(aspect);