thomasviana / clean_architecture_tdd Goto Github PK
View Code? Open in Web Editor NEW(Null-safety) This is a Number Trivia app example using clean architecture TDD.
(Null-safety) This is a Number Trivia app example using clean architecture TDD.
Error while send 08 number and use de green button.
Failed assertion: line 137 pos 7: '!_isCompleted':
package:bloc/src/bloc.dart:137
2
E/flutter (14410):
E/flutter (14410): emit was called after an event handler completed normally.
E/flutter (14410): This is usually due to an unawaited future in an event handler.
E/flutter (14410): Please make sure to await all asynchronous operations with event handlers
E/flutter (14410): and use emit.isDone after asynchronous operations before calling emit() to
E/flutter (14410): ensure the event handler has not completed.
E/flutter (14410):
E/flutter (14410): BAD
E/flutter (14410): on((event, emit) {
E/flutter (14410): future.whenComplete(() => emit(...));
E/flutter (14410): });
code ...
assert(
!_isCompleted,
'''\n\n
emit was called after an event handler completed normally.
This is usually due to an unawaited future in an event handler.
Please make sure to await all asynchronous operations with event handlers
and use emit.isDone after asynchronous operations before calling emit() to
ensure the event handler has not completed.
BAD
on((event, emit) {
future.whenComplete(() => emit(...));
});
test('should emit [Error] when the inpus is invalid.'...)
Whatever I put into expected, this test always passed. Should it?
type 'Null' is not a subtype of type 'Future'
package:internet_connection_checker/internet_connection.dart 184:20 MockInternetConnectionChecker.hasConnection
test/core/network_info_test.dart 23:42 main..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.