handleTarget method
void
handleTarget(
- dynamic target
Implementation
void handleTarget(dynamic target) {
_typeValue = target.toString();
if (target is DataStorage) {
_type = 'storage';
} else if (target is Entity) {
_type = 'entity';
} else if (target is Location) {
_type = 'block';
} else {
throw ('Please insert either an entity or location into data');
}
}