text<S> static method
DiagramProperty<S, String>
text<S>(
- String key, {
- required String label,
- required String read(
- S subject
- String? verb,
- DiagramPropertyArgs<
S, String> ? args, - S update(
- S subject,
- String value
- DiagramPropertyGroup group = DiagramPropertyGroup.general,
- bool visible(
- S subject
- bool enabled(
- S subject
- String? check(
- String value
- String editLabel(
- String value
- int maxLines = 1,
- 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,
);