getClassNameForObject method
Get the className for the provided object.
Implementation
String? getClassNameForObject(Object? data) {
if (data == null) {
return 'null';
} else if (data is int) {
return 'int';
} else if (data is double) {
return 'double';
} else if (data is String) {
return 'String';
} else if (data is bool) {
return 'bool';
} else if (data is DateTime) {
return 'DateTime';
} else if (data is ByteData) {
return 'ByteData';
} else if (data is Duration) {
return 'Duration';
} else if (data is UuidValue) {
return 'UuidValue';
} else if (data is Uri) {
return 'Uri';
} else if (data is BigInt) {
return 'BigInt';
} else if (data is Vector) {
return 'Vector';
} else if (data is HalfVector) {
return 'HalfVector';
} else if (data is SparseVector) {
return 'SparseVector';
} else if (data is Bit) {
return 'Bit';
}
return null;
}