Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (18 loc) · 511 Bytes

state_base_class_suffix.md

File metadata and controls

28 lines (18 loc) · 511 Bytes

state_base_class_suffix

severity: WARNING

The base state class should always be suffixed by State.

Example:

BAD:

@immutable
sealed class HomepageData {}

final class HomepageInitial extends HomepageData {}

GOOD:

sealed class HomepageState {}

final class HomepageInitial extends HomepageState {}

Additional Resources