Flutter ETS API Documentation v1.0.0


Class: DVModel

Model class representing a dynamic view component. This class holds all information needed to render a component dynamically, including its type, parameters, events, children, and optional builder.

Constructors

Constructor

new DVModel(compType, params, events, children, builder?): DVModel

Constructs a new DVModel instance.

Parameters

compType

string

The component type (e.g., "Column", "Row", "Text", "Image")

params

DVModelParameters

The component parameters

events

DVModelEvents

The component events

children

DVModelChildren

The child components

builder?

Any

Optional custom builder function

Returns

DVModel

Properties

builder

builder: Any

Optional custom builder function.


children

children: DVModelChildren

The child components.


compType

compType: string

The component type (e.g., "Column", "Row", "Text", "Image").


events

events: DVModelEvents

The component events.


id_

id_: number

The unique identifier for this model.


params

params: DVModelParameters

The component parameters.

Methods

getLayoutParams()

getLayoutParams(): DVModelParameters

Gets the layout parameters for this model.

Returns

DVModelParameters

The DVModelParameters instance