debugThrowLayout method

  1. @override
void debugThrowLayout(
  1. FlutterError error
)
override

Throws an error as a result of an incorrect layout phase e.g. calling inflate during a dry layout.

Override to improve the reporting of these kinds of errors.

Implementation

@override
void debugThrowLayout(FlutterError error) {
  debugCannotComputeDryLayout(error: error);
  super.debugThrowLayout(error);
}