Line data Source code
1 : import 'package:widgetbook_annotation/widgetbook_annotation.dart'; 2 : import 'package:widgetbook_generator/code_generators/instances/primary_instance.dart'; 3 : 4 : class DeviceTypeInstance extends PrimaryInstance<DeviceType> { 5 2 : DeviceTypeInstance({ 6 : required DeviceType deviceType, 7 2 : }) : super( 8 : value: deviceType, 9 : ); 10 : 11 1 : @override 12 : String toCode() { 13 2 : return value.toString(); 14 : } 15 : }