FractionallySizedBox constructor

FractionallySizedBox({
  1. double? widthFactor,
  2. double? heightFactor,
})

Implementation

FractionallySizedBox({
  this.widthFactor,
  this.heightFactor,
})  : assert(widthFactor == null || (widthFactor >= 0 && widthFactor <= 1)),
      assert(
          heightFactor == null || (heightFactor >= 0 && heightFactor <= 1));