image static method

Rule image({
  1. bool allowSvg = false,
})

image: an uploaded jpg, jpeg, png, bmp, gif or webp; svg only when allowSvg.

Implementation

static Rule image({bool allowSvg = false}) => ImageRule(allowSvg: allowSvg);