encode property
SelfEncodable
get
encode
Returns an Encodable that can encode an iterable of T
.
This let's you use any format extensions directly on a List of Encodables:
final Iterable<Person> people = ...;
final String json = people.encodable.toJson();
Implementation
SelfEncodable get encode => IterableSelfEncodable(this);