WxDrivenAnchorStyle.resolver constructor
WxDrivenAnchorStyle.resolver(
- DrivenPropertyResolver<
WxAnchorStyle?> resolver, { - bool? inherits = false,
Create a WxDrivenAnchorStyle from a resolver callback
Implementation
WxDrivenAnchorStyle.resolver(
DrivenPropertyResolver<WxAnchorStyle?> resolver, {
this.inherits = false,
}) : focusedStyle = resolver({WidgetEvent.focused}),
hoveredStyle = resolver({WidgetEvent.hovered}),
pressedStyle = resolver({WidgetEvent.pressed}),
disabledStyle = resolver({WidgetEvent.disabled}),
super.from(resolver({}));