EmbedBuilder class Null safety

Constructors

EmbedBuilder({String? title, String? description, String? url, DateTime? timestamp, Footer? footer, Image? image, Thumbnail? thumbnail, Author? author, List<Field>? fields, Color? color})
EmbedBuilder.fromGuildPreview(GuildPreview preview)
factory

Properties

author Author?
read / write
color Color?
read / write
description String?
read / write
fields List<Field>?
read / write
read / write
hashCode int
The hash code for this object.
read-only, inherited
image Image?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
thumbnail Thumbnail?
read / write
timestamp DateTime?
read / write
title String?
read / write
url String?
read / write

Methods

addField({required String name, required String value, bool? inline}) EmbedBuilder
Add an field into fields and return this
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setAuthor({required String name, String? url, String? iconUrl, String? proxyIconUrl}) EmbedBuilder
Set the author field and return this
setColor(Color color) EmbedBuilder
Set the color field and return this
setDescription(String value) EmbedBuilder
Set the description field and return this
setFooter({required String text, String? iconUrl, String? proxyIconUrl}) EmbedBuilder
Set the footer field and return this
setImage({required String url, String? proxyUrl, int? width, int? height}) EmbedBuilder
Set the image field and return this
setThumbnail({required String url, String? proxyUrl, int? width, int? height}) EmbedBuilder
Set the thumbnail field and return this
setTimestamp({DateTime? dateTime}) EmbedBuilder
Set the timestamp field and return this
setTitle(String value) EmbedBuilder
Set the title field and return this
setUrl(String url) EmbedBuilder
Set the url field and return this
toJson() Object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited