Mutation<ResultType> constructor

const Mutation<ResultType>({
  1. Key? key,
  2. required Future<ResultType> fetch(
    1. Fluq cache
    ),
  3. required Widget builder(
    1. BuildContext context,
    2. Future fetch()
    ),
  4. void update(
    1. Fluq cache,
    2. ResultType result
    )?,
  5. void onSuccess(
    1. ResultType result
    )?,
  6. void onError(
    1. dynamic err
    )?,
  7. bool autoFetch = false,
})

Implementation

const Mutation({
  Key? key,
  required this.fetch,
  required this.builder,
  this.update,
  this.onSuccess,
  this.onError,
  this.autoFetch = false,
}) : super(key: key);