setDateTime method

Future<DateTime> setDateTime(
  1. UserPrefKey key,
  2. DateTime dateTime
)

Implementation

Future<DateTime> setDateTime(UserPrefKey key, DateTime dateTime) async {
  shared.string(prefName(key), dateTime.toIso8601String());
  return dateTime;
}