build method
Converts the builder to a JSON representation for the Discord API.
This method is typically called internally when sending messages and should not need to be called directly in most cases.
Returns a list of JSON objects representing all components in the builder.
Implementation
List<Map<String, dynamic>> build() {
return _components.map((e) => e.toJson()).toList();
}