getVariableByType<T> method
T?
getVariableByType<T>({
- T? orElse,
Returns variable by type
Implementation
T? getVariableByType<T>({T? orElse}) {
for (final v in _variablesByType.reversed) {
if (v is T) {
return v;
}
}
return orElse;
}