get<T> method
Implementation
Future<T?> get<T>(DragDataKey<T> key) async {
// Access to values is async for future proofing;
// Some platforms may only allow accessing data asynchronously
final res = _properties[key._name];
if (res != null) {
return key._decode(res);
} else {
return null;
}
}