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
resolve(events) {
return Checkmark(
curve: curve,
duration: duration,
color: color,
weight: weight,
size: size,
rounded: rounded,
drawCross: drawCross,
drawDash: drawDash,
checked: WidgetEvent.isSelected(events),
indeterminate: WidgetEvent.isIndeterminate(events),
);
}