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

Latest commit

 

History

History
27 lines (19 loc) · 335 Bytes

avoid_public_methods_on_bloc.md

File metadata and controls

27 lines (19 loc) · 335 Bytes

avoid_public_method_on_bloc

severity: WARNING

Avoid public methods on Bloc classes.

Example:

BAD:

class MyBloc extends Bloc<int, int> {
  MyBloc(super.initialState);

  void test() {}
}

GOOD:

class MyBloc extends Bloc<int, int> {
  MyBloc(super.initialState);

  void _test() {}
}