UninitializedLocaleData<F> class
This is used as a marker for a locale data map that hasn't been initialized, and will throw an exception on any usage that isn't the fallback patterns/symbols provided.
class UninitializedLocaleData<F> { final String message; final F fallbackData; const UninitializedLocaleData(this.message, this.fallbackData); operator [](String key) => (key == 'en_US') ? fallbackData : _throwException(); String lookupMessage(String message_str, [final String desc='', final Map examples=const {}, String locale, String name, List<String> args]) => _throwException(); List get keys => _throwException(); bool containsKey(String key) => (key == 'en_US') ? true : _throwException(); _throwException() { throw new LocaleDataException("Locale data has not been initialized" ", call $message."); } }
Constructors
Properties
final List keys #
List get keys => _throwException();
final String message #
final String message
Operators
dynamic operator [](String key) #
operator [](String key) => (key == 'en_US') ? fallbackData : _throwException();
Methods
bool containsKey(String key) #
bool containsKey(String key) => (key == 'en_US') ? true : _throwException();
String lookupMessage(String message_str, [String desc = '', Map examples = const{}, String locale, String name, List<String> args]) #
String lookupMessage(String message_str, [final String desc='', final Map examples=const {}, String locale, String name, List<String> args]) => _throwException();