IdUsernamePair constructor Null safety

IdUsernamePair(
  1. {required String identifier,
  2. required String username}
)

Default constructor for IdUsernamePair.

Params:

  • identifier: the ID of the generic credential containing the dispatch target information
  • username: The username of the account.

Implementation

factory IdUsernamePair({
  required String identifier,
  required String username,
}) {
  return IdUsernamePairImpl(
    identifier: identifier,
    username: username,
  );
}