DoubleProperty constructor

DoubleProperty(String name, double value, { String ifNull, String unit, String tooltip, Object defaultValue: kNoDefaultValue, bool showName: true, DiagnosticLevel level: DiagnosticLevel.info })

If specified, unit describes the unit for the value (e.g. px).

The showName and level arguments must not be null.

Implementation

DoubleProperty(String name, double value, {
  String ifNull,
  String unit,
  String tooltip,
  Object defaultValue = kNoDefaultValue,
  bool showName = true,
  DiagnosticLevel level = DiagnosticLevel.info,
}) : assert(showName != null),
     assert(level != null),
     super(
  name,
  value,
  ifNull: ifNull,
  unit: unit,
  tooltip: tooltip,
  defaultValue: defaultValue,
  showName: showName,
  level: level,
);