notesFor method

String? notesFor(
  1. PrismVersion version
)

Release notes for a version, when the payload contains a notes map.

Implementation

String? notesFor(PrismVersion version) {
  final notes = (lastPayload['notes'] as Map<String, dynamic>?) ?? const {};
  final value = notes[version.toString()];
  return value is String ? value : null;
}