Widgets

/

language

Duplicate

Shows a copy of another object of the same Page or Widget, .from(id or path). The copy renders the original's config and follows its writes and Injects below the Duplicate's .exeOrder (all of them without one); .config(...) sets the copy (color: red, or Card.text.weight: bold inside it). With .id, the copy is a target like any object (CardDup, CardDup.text). Its order takes a place in the original's chain. Ditto is accepted for Duplicate, and .tar for .from.

Example

LAYR
Column(
  Container(
    .id(card)
    .config(
      color: #e4dbcd
      padding: all(12)
    )
    Text('Card')
  )
  Duplicate(
    .id(cardCopy)
    .from(card)
    .config(color: #d4e4cd)
  )
)

Modifiers

.id · .from · .exeOrder · .config

Privacy

Cookies

Terms

Contact & grievances