AgoraPipContentViewLayout class

Layout configuration for Picture-in-Picture (PiP) video streams.

This class defines how multiple video streams should be arranged in a flow layout, where streams are placed from left to right and top to bottom in sequence.

Example layout with padding=10, spacing=5, column=3:

┌────────────────────────────────────┐
│                                    │
│  ┌────┐  ┌────┐  ┌────┐           │
│  │ 1  │  │ 2  │  │ 3  │           │
│  └────┘  └────┘  └────┘           │
│                                    │
│  ┌────┐  ┌────┐  ┌────┐           │
│  │ 4  │  │ 5  │  │ 6  │           │
│  └────┘  └────┘  └────┘           │
│                                    │
│  ┌────┐                           │
│  │ 7  │                           │
│  └────┘                           │
│                                    │
└────────────────────────────────────┘

Constructors

AgoraPipContentViewLayout.new({int? padding, int? spacing, int? row, int? column})
Creates an AgoraPipContentViewLayout instance.
const

Properties

column int?
Maximum number of streams per row. When reached, a new row will be started. If null, streams will flow to fill the available width. Must be greater than 0 or null.
final
hashCode int
The hash code for this object.
no setterinherited
padding int?
The padding around the entire layout in pixels. Creates space between the layout edges and the streams. If null, no padding will be applied.
final
row int?
Maximum number of rows allowed in the layout. When reached, no more rows will be created even if more streams exist. If null, rows will be created as needed to fit all streams. Must be greater than 0 or null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacing int?
The horizontal and vertical spacing between streams in pixels. Creates consistent gaps between adjacent streams. If null, streams will be placed directly adjacent to each other.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDictionary() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited