FFPostgresAction constructor

FFPostgresAction({
  1. FFIdentifier? tableIdentifier,
  2. FFPostgresInsert? insert,
  3. FFPostgresUpdate? update,
  4. FFPostgresDelete? delete,
  5. FFPostgresUpdateData? data,
  6. FFPostgresQuery? matchingRowsQuery,
  7. bool? returnMatchingRows,
  8. FFPostgresRead? read,
  9. FFPostgresSetToken? setToken,
})

Implementation

factory FFPostgresAction({
  FFIdentifier? tableIdentifier,
  FFPostgresInsert? insert,
  FFPostgresUpdate? update,
  FFPostgresDelete? delete,
  FFPostgresUpdateData? data,
  FFPostgresQuery? matchingRowsQuery,
  $core.bool? returnMatchingRows,
  FFPostgresRead? read,
  FFPostgresSetToken? setToken,
}) {
  final result = create();
  if (tableIdentifier != null) result.tableIdentifier = tableIdentifier;
  if (insert != null) result.insert = insert;
  if (update != null) result.update = update;
  if (delete != null) result.delete = delete;
  if (data != null) result.data = data;
  if (matchingRowsQuery != null) result.matchingRowsQuery = matchingRowsQuery;
  if (returnMatchingRows != null)
    result.returnMatchingRows = returnMatchingRows;
  if (read != null) result.read = read;
  if (setToken != null) result.setToken = setToken;
  return result;
}