custom<S, T> static method
DiagramProperty<S, T>
custom<S, T>(
- String key, {
- required String label,
- required T read(
- S subject
- String? verb,
- DiagramPropertyArgs<
S, T> ? args, - S update(
- S subject,
- T value
- bool equals(
- T a,
- T b
- String summary(
- T value
- String? check(
- T value
- DiagramPropertyGroup group = DiagramPropertyGroup.general,
- DiagramIcon? icon,
- bool visible(
- S subject
- bool enabled(
- S subject
- String editLabel(
- T value
A value of type T whose editor an inspector chooses by T; without
one it shows summary. equals compares values for mixed selections;
by default values compare with ==.
Implementation
static DiagramProperty<S, T> custom<S, T>(
String key, {
required String label,
required T Function(S subject) read,
String? verb,
DiagramPropertyArgs<S, T>? args,
S Function(S subject, T value)? update,
bool Function(T a, T b)? equals,
String Function(T value)? summary,
String? Function(T value)? check,
DiagramPropertyGroup group = DiagramPropertyGroup.general,
DiagramIcon? icon,
bool Function(S subject)? visible,
bool Function(S subject)? enabled,
String Function(T value)? editLabel,
}) => DiagramProperty._(
key,
label: label,
presentation: const DiagramCustomPresentation._(),
read: read,
verb: verb,
args: args,
update: update,
equals: equals,
summary: summary,
check: check,
group: group,
icon: icon,
visible: visible,
enabled: enabled,
editLabel: editLabel,
);