of method Null safety

AccountEvent of(
  1. {required String? accountId,
  2. required String? eventId}
)

Implementation

static AccountEvent of({
  required String? accountId,
  required String? eventId
  }) {
  final self = AccountEvent(<String, dynamic>{}, mtype: AccountEventRef, update: true);
  if (accountId != null) self.accountId = accountId;
  if (eventId != null) self.eventId = eventId;
  return self;
}