title: How to convert these block of codes into non-nullable statement/s in dart?
body: <p>I am trying to convert these lines of code into non-nullable statements, but encountering the error...</p>
  <blockquote>
  <p>The body might complete normally, causing 'null' to be returned, but the return type is a potentially non-nullable type.
  Try adding either a return or a throw statement at the end.</p>
  </blockquote>
  <pre><code>             child: BlocBuilder&lt;LoginBloc, LoginState&gt;(
                  builder: (context, state) {
                    if (state is LoginInitialState) {
                      return buildInitialUi();
                    } else if (state is LoginLoadingState) {
                      return buildLoadingUi();
                    } else if (state is LoginFailState) {
                      return buildFailureUi(state.message);
                    } else if (state is LoginSuccessState) {
                      emailCntrlr.text = &quot;&quot;;
                      passCntrlr.text = &quot;&quot;;
                      return Container();
                    }
                  },
                ),
  </code></pre>