useMaterialStatesController function

MaterialStatesController useMaterialStatesController({
  1. Set<MaterialState>? values,
  2. List<Object?>? keys,
})

Creates a MaterialStatesController that will be disposed automatically.

See also:

Implementation

MaterialStatesController useMaterialStatesController({
  Set<MaterialState>? values,
  List<Object?>? keys,
}) {
  return use(
    _MaterialStatesControllerHook(
      values: values,
      keys: keys,
    ),
  );
}