TextView constructor

TextView(
  1. String child, {
  2. Key? key,
  3. dynamic styles = const {},
  4. String? className,
  5. dynamic onClick()?,
})

Implementation

TextView(this.child,
    {Key? key, this.styles = const {}, this.className, this.onClick}) {
  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 ?? {});
  }
}