WxDrivenAnchorStyle.resolver constructor

WxDrivenAnchorStyle.resolver(
  1. DrivenPropertyResolver<WxAnchorStyle?> resolver, {
  2. 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({}));