encode method
Implementation
@override
String encode(T? value) {
if (value == null) {
return '';
}
final numeric = value as num;
if (numeric is int) {
return _encodeInt(numeric);
}
if (numeric is double) {
return _encodeDouble(numeric);
}
return numeric.toString();
}