resolve method
Returns a value of type T
that depends on events
.
Widgets like TextButton and ElevatedButton apply this method to their current WidgetEvents to compute colors and other visual parameters at build time.
Implementation
@override
T resolve(events) {
T result = atEnabled;
if (driven.isNotEmpty) {
for (final e in driven.entries) {
if (events.contains(e.key)) {
result = _resolveSingle(e.value, result);
break;
}
}
}
return result;
}