getResized method

Future<String?> getResized(
  1. String url,
  2. Resize resize
)

Resize an image using its URL. A new URL is then returned by the API.

Examples:

  • create a 50x50 thumbnail using clipping (keeps aspect ratio)
await client.images.getResized(
  'imageUrl',
  const Resize(50, 50),
);

Implementation

Future<String?> getResized(String url, Resize resize) =>
    _process(url, resize.params);