isSoloController function

bool isSoloController(
  1. DartType? type
)

Whether type is SoloController of solo, the base of Solo and SoloLanes, or one of its subtypes.

Solo before 2.0 has no SoloController, and its Solo is not one: a rule about any controller asks isSolo too.

Implementation

bool isSoloController(DartType? type) => _isA(type, 'SoloController', _solo);