JokerFileOperations extension

Extension methods for Joker that require dart:io

This extension is only available on native platforms (mobile, desktop, server) where dart:io is supported.

Deprecated: Use Joker.stubJsonFile() instead.

on
Annotations

Static Methods

stubJsonFile({String? host, String? path, String? method, required String filePath, int statusCode = 200, Map<String, String> headers = const {}, Duration? delay, String? name, bool removeAfterUse = false}) Future<JokerStub>

Available on Joker, provided by the JokerFileOperations extension

Creates a stub for JSON response loaded from a file (asynchronous)