FlexibleVideoOptions class
FlexibleVideoOptions
- Configuration options for the FlexibleVideo
widget.
Properties:
customWidth
(double
): The width of the video container in pixels.customHeight
(double
): The height of the video container in pixels.rows
(int
): The number of rows in the video grid layout. (Note: Currently not utilized in the widget build.)columns
(int
): The number of columns in the video grid layout. (Note: Currently not utilized in the widget build.)componentsToRender
(List<Widget>
): A list of child widgets to display within the video container. Typically, these would be video streams or related UI components.showAspect
(bool
): Determines whether the video container should be visible. Defaults totrue
.backgroundColor
(Color
): The background color of the video container. Defaults toColors.transparent
.
Example Usage:
FlexibleVideoOptions(
customWidth: 300.0,
customHeight: 200.0,
rows: 2,
columns: 3,
componentsToRender: [
VideoStreamWidget(userId: 'user1'),
VideoStreamWidget(userId: 'user2'),
// Add more video streams as needed
],
showAspect: true,
backgroundColor: Colors.black,
);
Constructors
Properties
- backgroundColor → Color
-
final
- columns → int
-
final
-
componentsToRender
→ List<
Widget> -
final
- customHeight → double
-
final
- customWidth → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rows → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAspect → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited