fittedBox method

FittedBox fittedBox({
  1. Key? key,
  2. BoxFit fit = BoxFit.contain,
  3. AlignmentGeometry alignment = Alignment.center,
  4. Clip clipBehavior = Clip.none,
})

Implementation

FittedBox fittedBox(
        {Key? key,
        BoxFit fit = BoxFit.contain,
        AlignmentGeometry alignment = Alignment.center,
        Clip clipBehavior = Clip.none}) =>
    FittedBox(
        key: key,
        fit: fit,
        alignment: alignment,
        clipBehavior: clipBehavior,
        child: this);