switched method

CameraPosition switched()

Return a CameraPosition which front and back is switched.

Implementation

CameraPosition switched() => {
      CameraPosition.front: CameraPosition.back,
      CameraPosition.back: CameraPosition.front,
    }[this]!;