WeCell constructor

WeCell({
  1. dynamic label,
  2. dynamic content,
  3. Widget? footer,
  4. Alignment align = Alignment.centerRight,
  5. double spacing = labelSpacing,
  6. double minHeight = 46.0,
  7. void onClick()?,
  8. void onLongPress()?,
})

Implementation

WeCell(
    {label,
    content,
    this.footer,
    this.align = Alignment.centerRight,
    this.spacing = labelSpacing,
    this.minHeight = 46.0,
    this.onClick,
    this.onLongPress})
    : this.label = label is String ? Text(label) : label,
      this.content = content is String ? Text(content) : content;