Transaction.success constructor
Commits value, and priority when given, as the location's new data. Without priority the
location keeps its current priority, unless value is a map with a .priority key
(DatabaseReference.set removes it). The value follows the rules of DatabaseReference.set; it may
hold ServerValue placeholders. An invalid value or priority throws neither here nor at
runTransaction: the transaction aborts and its Future fails with the ArgumentError.
Implementation
const factory Transaction.success(Object? value, {Object? priority}) =
TransactionSuccess;