value property

MaterialStateProperty<T?> get value

Implementation

MaterialStateProperty<T?> get value =>
    MaterialStateProperty.resolveWith((states) {
      if (all != null) return all;

      if (states.contains(MaterialState.disabled)) return disabled;
      if (states.contains(MaterialState.dragged)) return dragged;
      if (states.contains(MaterialState.error)) return error;
      if (states.contains(MaterialState.focused)) return focused;
      if (states.contains(MaterialState.hovered)) return hovered;
      if (states.contains(MaterialState.pressed)) return pressed;
      if (states.contains(MaterialState.scrolledUnder)) return scrolledUnder;
      if (states.contains(MaterialState.selected)) return selected;

      return base;
    });