hintContent property

String hintContent

Implementation

String get hintContent {
  switch (widget.state) {
    case CourseState.error:
      return app.clickToRetry;
    case CourseState.empty:
      return app.courseEmpty;
    case CourseState.offlineEmpty:
      return app.noOfflineData;
    case CourseState.custom:
      return widget.customStateHint ?? app.unknownError;
    default:
      return '';
  }
}