of static method
The data from the closest SfBarcodeTheme instance that encloses the given context.
Defaults to SfBarcodeTheme.barcodeThemeData
if there is no SfBarcodeTheme in the given build context.
Implementation
static SfBarcodeThemeData of(BuildContext context) {
final SfBarcodeTheme? sfBarcodeTheme =
context.dependOnInheritedWidgetOfExactType<SfBarcodeTheme>();
return sfBarcodeTheme?.data ?? SfTheme.of(context).barcodeThemeData;
}