prefValue method

  1. @override
Widget prefValue()
override

Implementation

@override
Widget prefValue() {
  DateTime date = DateTime.now();
  try {
    date = DateTime.parse(pref.value.toString());
  } catch (e) {}
  return Text(
    _formatTime(date),
    style: TextStyle(
      fontFamily: "Roboto",
      fontSize: 18.0,
      color: pref.enabled ? null : Colors.grey,
    ),
  );
}