DisplayLayout constructor
DisplayLayout({
- required String id,
- required String parentId,
- required LayoutPosition position,
- required int offset,
Implementation
DisplayLayout({
/// The unique identifier of the display.
required String id,
/// The unique identifier of the parent display. Empty if this is the root.
required String parentId,
/// The layout position of this display relative to the parent. This will
/// be ignored for the root.
required LayoutPosition position,
/// The offset of the display along the connected edge. 0 indicates that
/// the topmost or leftmost corners are aligned.
required int offset,
}) : _wrapped = $js.DisplayLayout(
id: id,
parentId: parentId,
position: position.toJS,
offset: offset,
);