stringOrNull method

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

Creates a textfield that can be typed in and optionally hold a null value

Implementation

String? stringOrNull({
  required String label,
  String? description,
  String? initialValue,
  $int? maxLines = 1,
}) {
  return onKnobAdded(
    StringKnob.nullable(
      label: label,
      initialValue: initialValue,
      description: description,
      maxLines: maxLines,
    ),
  );
}