View constructor
View({
- Key? key,
- List<
Widget> children = const [], - dynamic styles,
- String? type,
- GestureTapCallback? onClick,
Implementation
View({
Key? key,
this.children = const [],
this.styles,
this.type,
this.onClick,
}) : super(key: key) {
final type = this.styles.runtimeType.toString();
if (type == 'List<Map<String, dynamic>>' ||
type == 'List<Map<String, String>>') {
mStyles = StylesMap.formMap(mergeStyle(this.styles));
} else {
mStyles = StylesMap.formMap(this.styles ?? {});
}
}