readReason method

String? readReason(
  1. Map<String, Object?> answers
)

Reads the raw reason at this slot, or null when absent.

Implementation

String? readReason(Map<String, Object?> answers) {
  final slot = answers[key];
  if (slot is Map) {
    final reason = slot[reasonKey];
    if (reason is String) {
      return reason;
    }
  }
  return null;
}