listHeader<T>  function 
 
Implementation
SunnyListWidgetBuilder<T> listHeader<T>(Widget widget,
    {bool hideWhenEmpty = true}) {
  return (context, list) {
    return (hideWhenEmpty == true && list.isNotEmpty) ? widget : emptyBox;
  };
}