tryEncode method
Converts a Serialisable list of items into a List<Map<String, dynamic>>.
The List has a fixed length if growable is false.
Returns null if items is null.
Implementation
List<Map<String, dynamic>>? tryEncode(
final Iterable<Serialisable>? items, {
final bool growable = false,
}) {
return items != null ? encode(items, growable: growable) : null;
}