text<S> static method

DiagramProperty<S, String> text<S>(
  1. String key, {
  2. required String label,
  3. required String read(
    1. S subject
    ),
  4. String? verb,
  5. DiagramPropertyArgs<S, String>? args,
  6. S update(
    1. S subject,
    2. String value
    )?,
  7. DiagramPropertyGroup group = DiagramPropertyGroup.general,
  8. bool visible(
    1. S subject
    )?,
  9. bool enabled(
    1. S subject
    )?,
  10. String? check(
    1. String value
    )?,
  11. String editLabel(
    1. String value
    )?,
  12. int maxLines = 1,
  13. int? minLines,
})

Text: a single line by default, or prose over minLines to maxLines lines when maxLines is above one.

Implementation

static DiagramProperty<S, String> text<S>(
  String key, {
  required String label,
  required String Function(S subject) read,
  String? verb,
  DiagramPropertyArgs<S, String>? args,
  S Function(S subject, String value)? update,
  DiagramPropertyGroup group = DiagramPropertyGroup.general,
  bool Function(S subject)? visible,
  bool Function(S subject)? enabled,
  String? Function(String value)? check,
  String Function(String value)? editLabel,
  int maxLines = 1,
  int? minLines,
}) => DiagramProperty._(
  key,
  label: label,
  presentation: DiagramTextPresentation._(
    minLines: minLines,
    maxLines: maxLines,
  ),
  read: read,
  verb: verb,
  args: args,
  update: update,
  group: group,
  visible: visible,
  enabled: enabled,
  check: check,
  editLabel: editLabel,
);