utils library

Constants

exportFrameKey → const Key
The key used to identify the ExportFrame in the widget tree.

Functions

extractExportFrame(Element element) → Element?
Extracts the ExportFrame as Element from the provided element. ExportFrame is identified by checking if the widget contains the exportFrameKey.
findElement<T>(BuildContext context, bool compare(T)) → Element?
Finds the first Element in the provided context that matches the provided compare function.
findFirstDescendantElement<T>(Element element) → Element?
Finds the first descendant Element of the provided element of type T.
layoutWidget(Widget widget, Size size, double? pixelRatio) → Element?
Lays out the provided widget in a view of size and returns it as Element.