getSlot abstract method
Returns the slot that has reached the given or default commitment level
commitment For commitment parameter description see this document
Commitment.processed is not supported as commitment.
minContextSlot Set the minimum slot that the request can be evaluated at
Implementation
Future<int> getSlot({
Commitment? commitment,
num? minContextSlot,
});