point<S> static method

DiagramProperty<S, DiagramPoint> point<S>(
  1. String key, {
  2. required String label,
  3. required DiagramPoint read(
    1. S subject
    ),
  4. String? verb,
  5. DiagramPropertyArgs<S, DiagramPoint>? args,
  6. S update(
    1. S subject,
    2. DiagramPoint value
    )?,
  7. (String, String) labels = ('X', 'Y'),
  8. DiagramPropertyGroup group = DiagramPropertyGroup.general,
  9. double min = -1000000,
  10. double max = 1000000,
  11. double step = 1,
  12. String unit = '',
  13. bool visible(
    1. S subject
    )?,
  14. bool enabled(
    1. S subject
    )?,
  15. String editLabel(
    1. 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,
);