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 providedcompare
function. -
findFirstDescendantElement<
T> (Element element) → Element? -
Finds the first descendant Element of the provided
element
of typeT
. -
layoutWidget(
Widget widget, Size size, double? pixelRatio) → Element? -
Lays out the provided
widget
in a view ofsize
and returns it as Element.