TextBoneBorderRadius.fromHeightFactor constructor

const TextBoneBorderRadius.fromHeightFactor(
  1. double factor, {
  2. TextBoneBorderShape borderShape = TextBoneBorderShape.roundedRectangle,
})

Builds TextBoneBorderRadius instance that uses a high factor to resolve used border radius

Implementation

const TextBoneBorderRadius.fromHeightFactor(
  double factor, {
  this.borderShape = TextBoneBorderShape.roundedRectangle,
})  : assert(factor >= 0 && factor <= 1),
      _borderRadius = null,
      _heightPercentage = factor,
      usesHeightFactor = true;