widthOf function

double widthOf(
  1. BuildContext context
)

More readable than MediaQuery.of(context).size.width

Implementation

double widthOf(BuildContext context) {
  return MediaQuery.of(context).size.width;
}