import 'package:flutter/material.dart';

/// Base class for all locale-related events.
sealed class LocaleEvent {
  /// Creates a [LocaleEvent].
  const LocaleEvent();
}

/// Event triggered when the user wants to change the application locale.
class ChangeLocale extends LocaleEvent {
  /// The new locale to apply.
  final Locale locale;

  /// Creates a [ChangeLocale] event.
  const ChangeLocale(this.locale);
}

/// Event triggered to load the saved locale from persistent storage.
class LoadLocale extends LocaleEvent {
  /// Creates a [LoadLocale] event.
  const LoadLocale();
}
