gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl, inspired by Intl_translation and Flutter i18n
is there a way to bring the gen_lang package to the current versions?
lib/generated/i18n.dart:4126:55: Error: The parameter 'fallback' can't have a value of 'null' because of its type 'Locale', but the implicit default value is 'null'.
- 'Locale' is from 'dart:ui'.
Try adding either an explicit non-'null' default value or the 'required' modifier.
LocaleListResolutionCallback listResolution({Locale fallback}) {
lib/generated/i18n.dart:15:26: Error: A value of type 'S?' can't be returned from a function with return type 'S' because 'S?' is nullable and 'S' isn't.
lib/generated/i18n.dart:4129:16: Warning: Operand of null-aware operation '??' has type 'Locale' which excludes null.
- 'Locale' is from 'dart:ui'.
lib/generated/i18n.dart:4127:12: Error: A value of type 'Locale Function(List<Locale>, Iterable<Locale>)' can't be returned from a function with return type 'Locale? Function(List<Locale>?, Iterable<Locale>)' because 'List<Locale>?' is nullable and 'List<Locale>' isn't.
- 'Locale' is from 'dart:ui'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
return (List<Locale> locales, Iterable<Locale> supported) {
lib/generated/messages_all.dart:1049:14: Error: The value 'null' can't be returned from a function with return type 'MessageLookupByLibrary' because 'MessageLookupByLibrary' is not nullable.
- 'MessageLookupByLibrary' is from 'package:intl/message_lookup_by_library.dart'
generated files not working anymore.
is there a way to bring the gen_lang package to the current versions?
lib/generated/i18n.dart:15:26: Error: A value of type 'S?' can't be returned from a function with return type 'S' because 'S?' is nullable and 'S' isn't.