setImage method

EmbedBuilder setImage({
  1. required String url,
  2. String? proxyUrl,
  3. int? width,
  4. int? height,
})

Set the image field and return this

Example :

final embed = EmbedBuilder()
  .setImage(url: 'https://..../images/my_picture.png');

Implementation

EmbedBuilder setImage ({ required String url, String? proxyUrl, int? width, int? height }) {
  image = Image(url: url, proxyUrl: proxyUrl, width: width, height: height);
  return this;
}