size<S> static method
DiagramProperty<S, DiagramSize>
size<S>(
- String key, {
- required String label,
- required DiagramSize read(
- S subject
- String? verb,
- DiagramPropertyArgs<
S, DiagramSize> ? args, - S update(
- S subject,
- DiagramSize value
- (String, String) labels = ('W', 'H'),
- DiagramSize minimum = const DiagramSize(0, 0),
- double max = 1000000,
- double step = 1,
- String unit = '',
- (bool, bool) editable = (true, true),
- DiagramPropertyGroup group = DiagramPropertyGroup.general,
- bool visible(
- S subject
- bool enabled(
- S subject
- String editLabel(
- DiagramSize value
A width/height pair of at least minimum. editable disables an
axis.
Implementation
static DiagramProperty<S, DiagramSize> size<S>(
String key, {
required String label,
required DiagramSize Function(S subject) read,
String? verb,
DiagramPropertyArgs<S, DiagramSize>? args,
S Function(S subject, DiagramSize value)? update,
(String, String) labels = ('W', 'H'),
DiagramSize minimum = const DiagramSize(0, 0),
double max = 1000000,
double step = 1,
String unit = '',
(bool, bool) editable = (true, true),
DiagramPropertyGroup group = DiagramPropertyGroup.general,
bool Function(S subject)? visible,
bool Function(S subject)? enabled,
String Function(DiagramSize value)? editLabel,
}) => DiagramProperty._(
key,
label: label,
presentation: DiagramPairPresentation._(
axisLabels: labels,
minimum: (minimum.width, minimum.height),
max: max,
step: step,
unit: unit,
editableAxes: editable,
),
read: read,
verb: verb,
args: args,
update: update,
group: group,
visible: visible,
enabled: enabled,
editLabel: editLabel,
);