FrameNode constructor
FrameNode({
- String name = '',
- double x = 0,
- double y = 0,
- double? width,
- double? height,
- SceneColor? fill,
- SceneColor? borderColor,
- double borderWidth = 1,
- double corner = 0,
- double? cornerTopLeft,
- double? cornerTopRight,
- double? cornerBottomRight,
- double? cornerBottomLeft,
- double? minWidth,
- double? maxWidth,
- double? minHeight,
- double? maxHeight,
- double opacity = 1,
- bool visible = true,
- NodeLayout layout = NodeLayout.absolute,
- bool clip = false,
- double gap = 8,
- double? padding,
- double? paddingLeft,
- double? paddingTop,
- double? paddingRight,
- double? paddingBottom,
- List<
double?> ? columns, - double? cellPadding,
- double? cellPaddingLeft,
- double? cellPaddingTop,
- double? cellPaddingRight,
- double? cellPaddingBottom,
- SceneMainAxisAlignment mainAlign = SceneMainAxisAlignment.start,
- SceneCrossAxisAlignment crossAlign = SceneCrossAxisAlignment.center,
- List<
SceneNode> children = const [],
Padding comes in as the grammar spells it — one number when one number says it, four names when it does not — rather than as a SceneEdges, which the file has no way to write.
Implementation
FrameNode({
super.name,
super.x,
super.y,
super.width,
super.height,
super.fill,
super.borderColor,
super.borderWidth,
super.corner,
super.cornerTopLeft,
super.cornerTopRight,
super.cornerBottomRight,
super.cornerBottomLeft,
super.minWidth,
super.maxWidth,
super.minHeight,
super.maxHeight,
super.opacity,
super.visible,
this.layout = NodeLayout.absolute,
this.clip = false,
this.gap = 8,
double? padding,
double? paddingLeft,
double? paddingTop,
double? paddingRight,
double? paddingBottom,
List<double?>? columns,
double? cellPadding,
double? cellPaddingLeft,
double? cellPaddingTop,
double? cellPaddingRight,
double? cellPaddingBottom,
this.mainAlign = SceneMainAxisAlignment.start,
this.crossAlign = SceneCrossAxisAlignment.center,
List<SceneNode> children = const [],
}) : columns = columns == null ? [] : [...columns],
padding = _edges(
padding,
paddingLeft,
paddingTop,
paddingRight,
paddingBottom,
),
cellPadding = _edges(
cellPadding,
cellPaddingLeft,
cellPaddingTop,
cellPaddingRight,
cellPaddingBottom,
) {
this.children.addAll(children);
}