findProseTextLayout static method
Finds and returns the ProseTextLayout within a SuperTextField.
By default, this method expects a single SuperTextField in the widget tree and
finds it byType. To specify one SuperTextField among many, pass a superTextFieldFinder.
Implementation
static ProseTextLayout findProseTextLayout([Finder? superTextFieldFinder]) {
final finder = superTextFieldFinder ?? find.byType(SuperTextField);
final element = finder.evaluate().single as StatefulElement;
return (element.state as SuperTextFieldState).textLayout;
}