serialize method
serialize obj
of type T
for shared preferences.
Implementation
String? serialize(T obj) {
if (customEncode == null) {
return jsonEncode(obj);
} else {
return customEncode!(obj);
}
}
serialize obj
of type T
for shared preferences.
String? serialize(T obj) {
if (customEncode == null) {
return jsonEncode(obj);
} else {
return customEncode!(obj);
}
}