produceOrientation static method
- DateTime? acquisitionTime,
- OrientationType orientation = OrientationType.unknown,
- 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 toFaceType.unknown).
Returns
- Orientation: The created orientation instance.
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,
);
}