prefValue method

  1. @override
Widget prefValue()
override

Implementation

@override
Widget prefValue() {
  String text = pref.value == null ? '' : pref.value.toString();
  if (text.length > 15) text = '${text.substring(0, 14)}...';
  return Text(
    text,
    style: TextStyle(
      fontFamily: "Roboto",
      fontSize: 18.0,
      color: pref.enabled ? null : Colors.grey,
    ),
  );
}