debugThrowLayout method
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);
}