View constructor

View({
  1. Key? key,
  2. List<Widget> children = const [],
  3. dynamic styles,
  4. String? type,
  5. 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 ?? {});
  }
}