length property

int length

Total length of all text fields of embed

Implementation

int get length =>
  (this.title?.length ?? 0) +
      (this.description?.length ?? 0) +
      (this.footer?.length ?? 0) +
      (this.author?.length ?? 0) +
      (fields.isEmpty ? 0 : fields.map((embed) => embed.length).reduce((f, s) => f + s));