SetComponentLoading constructor
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});