string method

String string({
  1. required String label,
  2. String? description,
  3. String initialValue = '',
  4. $int? maxLines = 1,
})

Creates a textfield that can be typed in

Implementation

String string({
  required String label,
  String? description,
  String initialValue = '',
  $int? maxLines = 1,
}) {
  return onKnobAdded(
    StringKnob(
      label: label,
      initialValue: initialValue,
      description: description,
      maxLines: maxLines,
    ),
  )!;
}