FPickerStyle constructor

const FPickerStyle({
  1. required TextStyle textStyle,
  2. required BorderRadiusGeometry selectionBorderRadius,
  3. required Color selectionColor,
  4. required FFocusedOutlineStyle focusedOutlineStyle,
  5. double diameterRatio = 1.07,
  6. double squeeze = 1,
  7. double magnification = 1,
  8. double overAndUnderCenterOpacity = 0.25,
  9. double spacing = 5,
  10. TextHeightBehavior textHeightBehavior = const TextHeightBehavior(applyHeightToFirstAscent: false, applyHeightToLastDescent: false),
  11. double selectionHeightAdjustment = 0,
})

Creates a FPickerStyle.

Implementation

const FPickerStyle({
  required this.textStyle,
  required this.selectionBorderRadius,
  required this.selectionColor,
  required this.focusedOutlineStyle,
  this.diameterRatio = 1.07,
  this.squeeze = 1,
  this.magnification = 1,
  this.overAndUnderCenterOpacity = 0.25,
  this.spacing = 5,
  this.textHeightBehavior = const TextHeightBehavior(
    applyHeightToFirstAscent: false,
    applyHeightToLastDescent: false,
  ),
  this.selectionHeightAdjustment = 0,
}) : assert(0 < diameterRatio, 'diameterRatio ($diameterRatio) must be > 0'),
     assert(0 < squeeze, 'squeeze ($squeeze) must be > 0'),
     assert(0 < magnification, 'magnification ($magnification) must be > 0'),
     assert(
       0 <= overAndUnderCenterOpacity && overAndUnderCenterOpacity <= 1,
       'overAndUnderCenterOpacity ($overAndUnderCenterOpacity) must be between 0 and 1',
     ),
     assert(spacing >= 0, 'spacing ($spacing) must be >= 0');