switched method
Return a CameraPosition which front and back is switched.
Implementation
CameraPosition switched() => {
CameraPosition.front: CameraPosition.back,
CameraPosition.back: CameraPosition.front,
}[this]!;
Return a CameraPosition which front and back is switched.
CameraPosition switched() => {
CameraPosition.front: CameraPosition.back,
CameraPosition.back: CameraPosition.front,
}[this]!;