onSelected method

void onSelected()

basic behavior; override this in classes which are using the Selectable mixin

Implementation

void onSelected() {
  setState(() => selected = true);
}