fromKey static method
- @Deprecated('Use WidgetWrapper.fromKey instead')
- required GlobalKey<
State< key,StatefulWidget> > - int? width,
- int? height,
- double pixelRatio = 1.0,
- PdfImageOrientation? orientation,
- double? dpi,
override
Wrap a Flutter Widget identified by a GlobalKey to an ImageProvider.
Implementation
@Deprecated('Use WidgetWrapper.fromKey instead')
static Future<WidgetWrapper> fromKey({
required GlobalKey key,
int? width,
int? height,
double pixelRatio = 1.0,
PdfImageOrientation? orientation,
double? dpi,
}) {
return WidgetWrapper.fromKey(
key: key,
width: width,
pixelRatio: pixelRatio,
orientation: orientation,
dpi: dpi,
);
}