FormCast.textArea constructor

FormCast.textArea({
  1. TextAreaSize textAreaSize = TextAreaSize.sm,
})

Cast to a textarea

Implementation

FormCast.textArea({TextAreaSize textAreaSize = TextAreaSize.sm}) {
  String size = "sm";
  if (textAreaSize == TextAreaSize.md) {
    size = "md";
  }
  if (textAreaSize == TextAreaSize.lg) {
    size = "lg";
  }

  type = "textarea:$size";
}