fittedBox method

Widget fittedBox({
  1. Key? key,
  2. BoxFit fit = BoxFit.contain,
  3. AlignmentGeometry alignment = Alignment.center,
})

Implementation

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