flutter-tdd-clean-architecture-course
flutter-tdd-clean-architecture-course copied to clipboard
infinity from random endpoint causes crash
Random can return infinity, which has a null value for the number field, see json response below
{
"text": "-Infinity is negative infinity.",
"number": null,
"found": true,
"type": "trivia"
}
Oh, at this point, I think we can just pretend that this response doesn't occur since this is just an example app... 😅
Otherwise, you'd put appropriate logic into the InputConverter.