tryFromAccountInfo static method

StakeAccount? tryFromAccountInfo(
  1. AccountInfo? info
)

Creates an instance of this class from an account info.

Returns null if info is omitted.

StakeAccount.tryFromAccountInfo('AA==');

Implementation

static StakeAccount? tryFromAccountInfo(final AccountInfo? info) =>
    info != null ? StakeAccount.fromAccountInfo(info) : null;