SetComponentLoading constructor

const SetComponentLoading({
  1. required String key,
  2. required bool isLoading,
})

Creates a SetComponentLoading event.

Both key and isLoading are required parameters.

Example:

const event = SetComponentLoading(
  key: 'data_fetch',
  isLoading: true,
);

Implementation

const SetComponentLoading({required this.key, required this.isLoading});