Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonatas
2020-10-14 21:24:03 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
59420fd96195392af77115909060542a702ec29c
59420fd9
1 parent
97173eb0
improve error messages
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/get_state_manager/src/rx_flutter/rx_notifier.dart
lib/get_state_manager/src/rx_flutter/rx_notifier.dart
View file @
59420fd
...
...
@@ -94,13 +94,13 @@ abstract class GetNotifier<T> extends Value<T> with GetLifeCycle {
}
Widget
call
(
NotifierBuilder
<
T
>
widget
,
{
Widget
onError
,
Widget
onLoading
})
{
assert
(
widget
!=
null
);
return
SimpleBuilder
(
builder:
(
_
)
{
if
(
status
.
isLoading
)
{
return
onLoading
??
CircularProgressIndicator
();
}
else
if
(
status
.
isError
)
{
return
onError
??
Text
(
'A error occured'
);
return
onError
??
Text
(
'A error occured
:
${status.errorMessage}
'
);
}
else
{
if
(
widget
==
null
)
throw
'Widget cannot be null'
;
return
widget
(
value
);
}
});
...
...
Please
register
or
login
to post a comment