addMockApi static method
Navigates to the add mock API screen
mockApi - Optional mock API object to be used in the screen
Returns a Future that completes when the navigation is finished
Implementation
static Future addMockApi({MockApi? mockApi}) async {
return await toScreen(
ChangeNotifierProvider(
create: (context) => AddMockApiProvider(mockApi: mockApi),
child: const AddMockApiScreen(),
),
addMockApiName);
}