defaultCountdownText static method

String defaultCountdownText({
  1. required int secondsCountdown,
})

Default formatter for countdownTextBuilder: produces "Code valid for M:SS", where the seconds are zero-padded to 2 digits and the minutes are not padded.

Implementation

static String defaultCountdownText({required int secondsCountdown}) =>
    "Code valid for "
    "${secondsCountdown ~/ 60}:${(secondsCountdown % 60).toString().padLeft(2, '0')}";