DataWidget constructor

const DataWidget({
  1. Key? key,
  2. required DataEntity data,
  3. TextStyle? textStyle,
  4. WidgetBuilder? emptyBuilder,
  5. LinkLauncher? linkLauncher,
})

Creates a new DataWidget for a given data

The TextStyle will adjust to textStyle If emptyBuilder is null it will show a Text with '-' in case data.value is null or empty UriDataEntity will launch UriDataEntity.value with linkLauncher if it is null a new LinkLauncher will be created

Implementation

const DataWidget({
  super.key,
  required this.data,
  this.textStyle,
  this.emptyBuilder,
  this.linkLauncher,
});