DisplayFeature constructor

const DisplayFeature({
  1. required Rect bounds,
  2. required DisplayFeatureType type,
  3. required DisplayFeatureState state,
})

Implementation

const DisplayFeature({
  required this.bounds,
  required this.type,
  required this.state,
}) : assert(!identical(type, DisplayFeatureType.cutout) || identical(state, DisplayFeatureState.unknown));