afterFirstLayout method

void afterFirstLayout(
  1. BuildContext context
)

Implementation

void afterFirstLayout(BuildContext context) {
  try {
    height = context.size!.height;
    width = context.size!.width;
  } catch (e) {
    if (kDebugMode) {
      print(e.toString());
    }
  }
}