DisplayLayout constructor

DisplayLayout({
  1. required String id,
  2. required String parentId,
  3. required LayoutPosition position,
  4. 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,
      );