fromKey static method

  1. @Deprecated('Use WidgetWrapper.fromKey instead')
Future<WidgetWrapper> fromKey({
  1. required GlobalKey<State<StatefulWidget>> key,
  2. int? width,
  3. int? height,
  4. double pixelRatio = 1.0,
  5. PdfImageOrientation? orientation,
  6. 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,
  );
}