produceOrientation static method

Orientation produceOrientation({
  1. DateTime? acquisitionTime,
  2. OrientationType orientation = OrientationType.unknown,
  3. FaceType face = FaceType.unknown,
})

Produces a new Orientation from provided parameters

Implementation

static Orientation produceOrientation({
  final DateTime? acquisitionTime,
  final OrientationType orientation = OrientationType.unknown,
  final FaceType face = FaceType.unknown,
}) {
  return OrientationImpl(
    type: DataType.orientation,
    acquisitionTime: acquisitionTime ?? DateTime.now(),
    orientation: orientation,
    face: face,
  );
}