BaseJsonViewer constructor

BaseJsonViewer(
  1. dynamic jsonObj, {
  2. Key? key,
  3. required void onTap(
    1. dynamic value
    ),
  4. required void onDoubleTap(
    1. dynamic value
    ),
  5. required void onLongPress(
    1. dynamic value
    ),
})

Implementation

BaseJsonViewer(
  this.jsonObj, {
  super.key,
  required void Function(dynamic value) onTap,
  required void Function(dynamic value) onDoubleTap,
  required void Function(dynamic value) onLongPress,
}) {
  JSONText.onTap = onTap;
  JSONText.onDoubleTap = onDoubleTap;
  JSONText.onLongPress = onLongPress;
}