frame method

Widget frame({
  1. double? width,
  2. double? height,
  3. bool handover = true,
})

A modifier that sets its widget's frame size.

Example:

Icon(Icons.person)
    .frame(width: 50, height: 25);

Implementation

Widget frame({double? width, double? height, bool handover = true}) {
  if (handover && this is Container) {
    return (this as Container).frame(width: width, height: height);
  }
  return Container(child: this, width: width, height: height);
}