credential method Null safety

OAuthCredential credential(
  1. {required String accessToken,
  2. required String secret}
)

Create a new TwitterAuthCredential from a provided accessToken and secret;

Implementation

static OAuthCredential credential({
  required String accessToken,
  required String secret,
}) {
  return TwitterAuthCredential._credential(
    accessToken: accessToken,
    secret: secret,
  );
}