duration property

double duration
final

The duration it will be on screen, after this duration the message will disappear automatically, by default it stays on screen until the user closes it

Implementation

final double duration;