point<S> static method
DiagramProperty<S, DiagramPoint>
point<S>(
- String key, {
- required String label,
- required DiagramPoint read(
- S subject
- String? verb,
- DiagramPropertyArgs<
S, DiagramPoint> ? args, - S update(
- S subject,
- DiagramPoint value
- (String, String) labels = ('X', 'Y'),
- DiagramPropertyGroup group = DiagramPropertyGroup.general,
- double min = -1000000,
- double max = 1000000,
- double step = 1,
- String unit = '',
- bool visible(
- S subject
- bool enabled(
- S subject
- String editLabel(
- DiagramPoint value
An x/y pair, labeled by labels.
Implementation
static DiagramProperty<S, DiagramPoint> point<S>(
String key, {
required String label,
required DiagramPoint Function(S subject) read,
String? verb,
DiagramPropertyArgs<S, DiagramPoint>? args,
S Function(S subject, DiagramPoint value)? update,
(String, String) labels = ('X', 'Y'),
DiagramPropertyGroup group = DiagramPropertyGroup.general,
double min = -1000000,
double max = 1000000,
double step = 1,
String unit = '',
bool Function(S subject)? visible,
bool Function(S subject)? enabled,
String Function(DiagramPoint value)? editLabel,
}) => DiagramProperty._(
key,
label: label,
presentation: DiagramPairPresentation._(
axisLabels: labels,
minimum: (min, min),
max: max,
step: step,
unit: unit,
editableAxes: (true, true),
),
read: read,
verb: verb,
args: args,
update: update,
group: group,
visible: visible,
enabled: enabled,
editLabel: editLabel,
);