Line data Source code
1 : import 'package:flutter/widgets.dart'; 2 : 3 : class HelperTextViewModel { 4 : int id; 5 : String text; 6 : Color fontColor; 7 : double fontSize; 8 : String fontFamily; 9 : FontWeight fontWeight; 10 : 11 5 : HelperTextViewModel({ 12 : this.id, 13 : this.text, 14 : @required this.fontColor, 15 : @required this.fontSize, 16 : this.fontFamily, 17 : this.fontWeight, 18 : }); 19 : } 20 : 21 : class HelperImageViewModel { 22 : int id; 23 : String url; 24 : 25 4 : HelperImageViewModel({ 26 : this.id, 27 : @required this.url, 28 : }); 29 : } 30 : 31 : class HelperBoxViewModel { 32 : int id; 33 : Color backgroundColor; 34 : 35 5 : HelperBoxViewModel({ 36 : this.id, 37 : @required this.backgroundColor, 38 : }); 39 : } 40 : 41 : class HelperBorderViewModel { 42 : int id; 43 : Color color; 44 : String style; 45 : double width; 46 : 47 0 : HelperBorderViewModel({ 48 : this.id, 49 : this.color, 50 : this.style, 51 : this.width, 52 : }); 53 : }