ImagePainter.network constructor

ImagePainter.network(
  1. String url, {
  2. required Key key,
  3. double? height,
  4. double? width,
  5. Widget? placeholderWidget,
  6. bool? scalable,
  7. List<Color>? colors,
  8. Widget? brushIcon,
  9. Widget? undoIcon,
  10. Widget? clearAllIcon,
  11. Widget? colorIcon,
  12. PaintMode? initialPaintMode,
  13. double? initialStrokeWidth,
  14. Color? initialColor,
  15. ValueChanged<PaintMode>? onPaintModeChanged,
  16. ValueChanged<Color>? onColorChanged,
  17. ValueChanged<double>? onStrokeWidthChanged,
  18. TextDelegate? textDelegate,
  19. bool? controlsAtTop,
  20. bool? isOnlySignature,
  21. Uint8List? payload,
  22. dynamic onSave(
    1. Uint8List
    )?,
  23. double? signature_Width,
  24. double? signature_Height,
  25. bool? readOnly,
})

Constructor for loading image from network url.

Implementation

factory ImagePainter.network(
  String url, {
  required Key key,
  double? height,
  double? width,
  Widget? placeholderWidget,
  bool? scalable,
  List<Color>? colors,
  Widget? brushIcon,
  Widget? undoIcon,
  Widget? clearAllIcon,
  Widget? colorIcon,
  PaintMode? initialPaintMode,
  double? initialStrokeWidth,
  Color? initialColor,
  ValueChanged<PaintMode>? onPaintModeChanged,
  ValueChanged<Color>? onColorChanged,
  ValueChanged<double>? onStrokeWidthChanged,
  TextDelegate? textDelegate,
  bool? controlsAtTop,
  bool? isOnlySignature,
  Uint8List? payload,
  Function(Uint8List)? onSave,
  double? signature_Width,
  double? signature_Height,
  bool? readOnly,
}) {
  return ImagePainter._(
    key: key,
    height: height,
    width: width,
    placeHolder: placeholderWidget,
    isScalable: scalable,
    colors: colors,
    brushIcon: brushIcon,
    undoIcon: undoIcon,
    colorIcon: colorIcon,
    clearAllIcon: clearAllIcon,
    initialPaintMode: initialPaintMode,
    initialColor: initialColor,
    initialStrokeWidth: initialStrokeWidth,
    onPaintModeChanged: onPaintModeChanged,
    onColorChanged: onColorChanged,
    onStrokeWidthChanged: onStrokeWidthChanged,
    textDelegate: textDelegate,
    controlsAtTop: controlsAtTop ?? true,
    isOnlySignature: isOnlySignature ?? true,
    payload: payload,
    onSave: onSave,
    signature_Height: signature_Height,
    signature_Width: signature_Width,
    readOnly: readOnly ?? false,
  );
}