TextBoneBorderRadius.fromHeightFactor constructor

const TextBoneBorderRadius.fromHeightFactor(
  1. double factor
)

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

Implementation

const TextBoneBorderRadius.fromHeightFactor(
  double factor,
)   : assert(factor >= 0 && factor <= 1),
      _borderRadius = null,
      _heightPercentage = factor,
      usesHeightFactor = true;