getCode abstract method Null safety

FutureOr<AuthCode?>? getCode(
  1. AuthServer server,
  2. String code
)

Must return AuthCode for its identifiying code.

This must return an instance of AuthCode where AuthCode.code matches code. Return null if no matching code.

Implementation

FutureOr<AuthCode?>? getCode(AuthServer server, String code);