fill<S> static method

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

No fill, a solid color, or a linear or radial gradient.

Implementation

static DiagramProperty<S, DiagramFill> fill<S>(
  String key, {
  required String label,
  required DiagramFill Function(S subject) read,
  String? verb,
  DiagramPropertyArgs<S, DiagramFill>? args,
  S Function(S subject, DiagramFill value)? update,
  DiagramPropertyGroup group = DiagramPropertyGroup.general,
  bool Function(S subject)? visible,
  bool Function(S subject)? enabled,
  String Function(DiagramFill value)? editLabel,
}) => DiagramProperty._(
  key,
  label: label,
  presentation: const DiagramFillPresentation._(),
  read: read,
  verb: verb,
  args: args,
  update: update,
  group: group,
  visible: visible,
  enabled: enabled,
  editLabel: editLabel,
);