get<T extends V?> method

T? get<T extends V?>(
  1. K? key
)

Returns the value associated from the K parameter

Example :

Channel? channel = guild.channels.cache.get('991686152585232404');
print(channel);

Implementation

T? get<T extends V?> (K? key) => this[key] as T?;