From 5baeae1abf8db582fdba7b4b680ba458cf4a26cc Mon Sep 17 00:00:00 2001 From: MedinaVla Date: Wed, 25 Aug 2021 20:35:07 -0500 Subject: [PATCH] Update state-feature.template.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix:AƱadiendo null safty al Error State --- src/templates/new_feature/logic/state-feature.template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/new_feature/logic/state-feature.template.ts b/src/templates/new_feature/logic/state-feature.template.ts index 002b115..d95eaa3 100644 --- a/src/templates/new_feature/logic/state-feature.template.ts +++ b/src/templates/new_feature/logic/state-feature.template.ts @@ -31,7 +31,7 @@ abstract class ${pascalCaseName}State with _$${pascalCaseName}State { const factory ${pascalCaseName}State.loading() = Loading; /// Error when loading data state - const factory ${pascalCaseName}State.error([String message]) = Error; + const factory ${pascalCaseName}State.error([String? message]) = Error; }`; } /*