direction property

  1. @override
LensDirection get direction
override

Location of the camera on the device.

Implementation

@override
LensDirection get direction {
  switch (facing) {
    case Facing.front:
      return LensDirection.front;
    case Facing.back:
      return LensDirection.back;
  }
}