EmptyableContentBuilder<T> constructor

EmptyableContentBuilder<T>({
  1. Key? key,
  2. required T? content,
  3. EmptyChecker<T>? emptyChecker,
  4. WidgetBuilder? emptyBuilder,
  5. required ValueResultBuilder<T> builder,
})

Create the widget

emptyChecker - Function used to determine whether content is blank or not If not given, defaultEmptyChecker is used

emptyBuilder - Builder being used when content is blank If not given, defaultEmptyBuilder is used.

builder - Builder being used when content is not blank. The content passed to builder will never been null.

Implementation

EmptyableContentBuilder({
  Key? key,
  required this.content,
  EmptyChecker<T>? emptyChecker,
  this.emptyBuilder,
  required this.builder,
})   : this.emptyChecker = emptyChecker ?? defaultEmptyChecker,
      super(key: key);