IrFrame constructor

IrFrame({
  1. required String name,
  2. IrSizing width = const IrSizing.hug(),
  3. IrSizing height = const IrSizing.hug(),
  4. List<String> origin = const [],
  5. String? source,
  6. IrPosition? position,
  7. IrInstanceRef? instance,
  8. IrLayoutDirection direction = IrLayoutDirection.vertical,
  9. double gap = 0,
  10. bool wrap = false,
  11. double runGap = 0,
  12. IrInsets padding = IrInsets.zero,
  13. IrMainAlign mainAlign = IrMainAlign.start,
  14. IrCrossAlign crossAlign = IrCrossAlign.start,
  15. IrColor? fill,
  16. IrGradient? gradient,
  17. IrImagePaint? image,
  18. IrCorners corners = IrCorners.zero,
  19. IrStroke? stroke,
  20. List<IrShadow> shadows = const [],
  21. String? shadowToken,
  22. bool clip = false,
  23. double? minWidth,
  24. double? minHeight,
  25. String? role,
  26. List<IrNode>? children,
})

Implementation

IrFrame({
  required super.name,
  super.width = const IrSizing.hug(),
  super.height = const IrSizing.hug(),
  super.origin,
  super.source,
  super.position,
  super.instance,
  this.direction = IrLayoutDirection.vertical,
  this.gap = 0,
  this.wrap = false,
  this.runGap = 0,
  this.padding = IrInsets.zero,
  this.mainAlign = IrMainAlign.start,
  this.crossAlign = IrCrossAlign.start,
  this.fill,
  this.gradient,
  this.image,
  this.corners = IrCorners.zero,
  this.stroke,
  this.shadows = const [],
  this.shadowToken,
  this.clip = false,
  this.minWidth,
  this.minHeight,
  this.role,
  List<IrNode>? children,
}) : children = children ?? [];