FoldInfo constructor

const FoldInfo({
  1. required bool isFoldable,
  2. required FoldDisplay display,
  3. required FoldPose pose,
  4. required List<FoldRegion> regions,
  5. double? hingeAngle,
  6. FoldSizeClass horizontalSizeClass = FoldSizeClass.unspecified,
  7. FoldSizeClass verticalSizeClass = FoldSizeClass.unspecified,
  8. VerticalBarEdge verticalBarEdge = VerticalBarEdge.unspecified,
  9. bool isResolved = false,
})

Creates a fold state description.

Implementation

const FoldInfo({
  required this.isFoldable,
  required this.display,
  required this.pose,
  required this.regions,
  this.hingeAngle,
  this.horizontalSizeClass = FoldSizeClass.unspecified,
  this.verticalSizeClass = FoldSizeClass.unspecified,
  this.verticalBarEdge = VerticalBarEdge.unspecified,
  this.isResolved = false,
});