operator [] method

String? operator [](
  1. String to
)

Implementation

String? operator [](String to) =>
    translations.where((e) => e.to == to).firstOrNull?.text;