DataWidget constructor
const
DataWidget({
- Key? key,
- required DataEntity data,
- TextStyle? textStyle,
- WidgetBuilder? emptyBuilder,
- 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,
});