canEncodeCustom<T> method
Checks if the encoder can encode the custom type T.
When this method returns true, the encodeObject method can be called with the type T.
Implementation
@override
bool canEncodeCustom<T>() {
return T == DateTime;
}