apiDetail static method
Navigates to the API detail screen
requestModel - The request model containing details about the API request
Returns a Future that completes when the navigation is finished
Implementation
static Future apiDetail({required RequestModel requestModel}) async {
return await toScreen(
ChangeNotifierProvider(
create: (context) => RequestDetailScreenProvider(requestModel),
child: const RequestDetailScreen(),
),
apiDetailName);
}