effectiveProperty<T> static method

Implementation

static MenuItemMaterialStateProperty<T>? effectiveProperty<T>(
  MenuItemMaterialStateProperty<T>? first,
  MenuItemMaterialStateProperty<T>? second,
  MenuItemMaterialStateProperty<T>? third
) {
  final resolve = makeResolver(first, second, third);

  return ResolvedMenuItemMaterialStateProperty(
    enabled: resolve((property) => property.enabled),
    disabled: resolve((property) => property.disabled),
    hovered: resolve((property) => property.hovered),
    focused: resolve((property) => property.focused),
    pressed: resolve((property) => property.pressed)
  );
}