RulerValueView constructor

const RulerValueView({
  1. required int maxLetterCount,
  2. required String value,
  3. TextStyle? style,
  4. AlignmentGeometry alignment = AlignmentDirectional.center,
  5. Key? key,
})

Creates a value displaying widget.

maxLetterCount is used to determine the maximal width used by value. If style is null, DefaultTextStyle will be used.

Implementation

const RulerValueView({
  required this.maxLetterCount,
  required this.value,
  this.style,
  this.alignment = AlignmentDirectional.center,
  super.key,
});