boxWidth property

double get boxWidth

boxWidth

its box size width

Example:

class Example extends StatelessWidget {
const Example({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
  return Text("${context.boxWidth}");
  }
}

Implementation

/// @override
/// Widget build(BuildContext context) {
///   return Text("${context.boxWidth}");
///   }
/// }
/// ```
double get boxWidth => mediaQueryData.size.width;