getWidth static method

dynamic getWidth(
  1. BuildContext context
)

Implementation

static getWidth(BuildContext context) {
  return MediaQuery.of(context).size.width;
}