maybeWidthOf static method

double? maybeWidthOf(
  1. BuildContext context
)

Implementation

static double? maybeWidthOf(BuildContext context) {
  final scoped = _KiteResponsiveWidthScope.maybeWidthOf(context);
  if (scoped != null) return scoped;
  return MediaQuery.maybeSizeOf(context)?.width;
}