sourceFormatMenuIcon function
- RohdSourceFormat format, {
- double size = 18,
App-bar-style icon for a source/output format.
Implementation
Widget sourceFormatMenuIcon(RohdSourceFormat format, {double size = 18}) =>
switch (format) {
RohdSourceFormat.rohd => _sourceFormatAssetIcon(
_rohdIconAsset,
semanticLabel: 'ROHD Source',
size: size,
),
RohdSourceFormat.sv => _sourceFormatAssetIcon(
_systemVerilogIconAsset,
semanticLabel: 'SystemVerilog Source',
size: size,
),
RohdSourceFormat.sc => _sourceFormatAssetIcon(
_systemCIconAsset,
semanticLabel: 'SystemC Source',
size: size,
),
RohdSourceFormat.fst => Icon(Icons.timeline, size: size),
};