refactor: more convenient ways customizing config

This commit is contained in:
Kingkor Roy Tirtho
2023-03-02 18:51:50 +06:00
parent 9e8959820f
commit 0c819d4e11
14 changed files with 159 additions and 53 deletions
@@ -10,8 +10,8 @@ Query<DataType, ErrorType> useQuery<DataType, ErrorType>(
final String queryKey,
final QueryFn<DataType> queryFn, {
final DataType? initial,
final RetryConfig retryConfig = DefaultConstants.retryConfig,
final RefreshConfig refreshConfig = DefaultConstants.refreshConfig,
final RetryConfig? retryConfig,
final RefreshConfig? refreshConfig,
final JsonConfig<DataType>? jsonConfig,
final ValueChanged<DataType>? onData,
final ValueChanged<ErrorType>? onError,