produceOrientation static method

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

Creates a new Orientation instance from provided parameters.

Parameters

  • acquisitionTime: When the orientation was determined (defaults to current time).
  • orientation: The current orientation (defaults to OrientationType.unknown).
  • faceType: The facing direction (defaults to FaceType.unknown).

Returns

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,
  );
}