getKey static method

Key getKey(
  1. DateTime date
)

Returns a Key for the button based on the date.

Implementation

static Key getKey(DateTime date) {
  assert(date.isUtc, 'Date must be in UTC');
  return Key('multi_day_portal_overlay_button_${date.millisecondsSinceEpoch}');
}