I am trying to understand how mocking works with dart and mockito. Image I have the below declarations:
void foo(){}
and similarly a class
class BarClass {
void bar(){}
}
and then my widget accesses the first one directly as foo();
and the second one as BarClass()
.
What would be the way to mock these two? Should I be accessing them through something like getit to mock them properly or is there actually a way?