Line data Source code
1 : import 'package:widgetbook_generator/code_generators/instances/function_call_instance.dart'; 2 : 3 : /// An instance of a function returning ThemeData 4 : /// 5 : /// Since ThemeData is always returned as a function, [ThemeInstance] is based 6 : /// on [FunctionCallInstance] 7 : class ThemeInstance extends FunctionCallInstance { 8 : /// Creates a new instance of [ThemeInstance] 9 2 : const ThemeInstance({ 10 : required String name, 11 0 : }) : super( 12 : name: name, 13 : ); 14 : }