imageUrl method

String imageUrl({
  1. int width = 200,
  2. int height = 200,
})

Generate a random image URL.

Implementation

String imageUrl({int width = 200, int height = 200}) {
  return 'https://picsum.photos/$width/$height?random=${randomInt(1, 10000)}';
}