toMap method

  1. @override
Map<String, dynamic> toMap()

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'text': text,
    'textColor': textColor.jsonValue,
    'textAlign': textAlign.toString(),
    'fontFamily': fontFamily.toString(),
    'isLeftIconTappable': isLeftIconTappable,
    'leftIcon': (leftIcon != null ? jsonEncode(leftIcon!.toMap()) : null),
    'isRightIconTappable': isRightIconTappable,
    'rightIcon': (rightIcon != null ? jsonEncode(rightIcon!.toMap()) : null),
    'textSize': textSize,
  };
}