Skip to content

Commit

Permalink
refactor: remove unsed constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-molinski committed Nov 14, 2024
1 parent 50a5f96 commit f7c1611
Showing 1 changed file with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,7 @@ final class SectionsControllerState extends Equatable {
final SectionStepId? activeStepId;
final Set<SectionStepId> editStepsIds;

factory SectionsControllerState({
List<Section> sections = const [],
Set<int> openedSections = const {},
SectionStepId? activeStepId,
Set<SectionStepId> editStepsIds = const {},
}) {
return SectionsControllerState._(
sections: sections,
openedSections: openedSections,
activeStepId: activeStepId,
editStepsIds: editStepsIds,
);
}

const SectionsControllerState._({
const SectionsControllerState({
this.sections = const [],
this.openedSections = const {},
this.activeStepId,
Expand Down Expand Up @@ -97,7 +83,7 @@ final class SectionsController extends ValueNotifier<SectionsControllerState> {
ItemScrollController? _itemsScrollController;

SectionsController([
super.value = const SectionsControllerState._(),
super.value = const SectionsControllerState(),
]) : super();

// ignore: use_setters_to_change_properties
Expand Down

0 comments on commit f7c1611

Please sign in to comment.