body method
Implementation
Widget body(
BuildContext context, JobCubitState state, ValueKey<JobState> valueKey) {
return Builder(
key: valueKey,
builder: (context) {
if (state.isInProgress && fetching != null) {
return fetching!(context);
}
if (state.isFailed && failed != null) {
return failed!(context, state.message);
}
if (state.isSuccess && success != null) {
return success!(context);
}
return builder(context);
});
}