ApiResponse<T>.notFound constructor
- String? message
Creates a not found response.
Implementation
factory ApiResponse.notFound([String? message]) {
return ApiResponse<T>(
success: false,
error: message ?? 'Resource not found',
statusCode: 404,
);
}