planesOf method

List<UArPlane> planesOf({
  1. UArPlaneType? type,
  2. UArPlaneClassification? classification,
})

Planes of one kind, largest first.

Implementation

List<UArPlane> planesOf({UArPlaneType? type, UArPlaneClassification? classification}) =>
    value.planes.values.where((UArPlane p) => (type == null || p.type == type) && (classification == null || p.classification == classification)).toList(growable: false)
      ..sort((UArPlane a, UArPlane b) => b.area.compareTo(a.area));