MockTemplate class

Mock Template used for testing

The messages are added programatically in the constructor

Inheritance

Constructors

MockTemplate(String projectName, Map<String, MainMessage> messages, {String locale = 'en'})

Properties

defaultLocale String
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
lastModified DateTime
read / write, inherited
messages Map<String, MainMessage>
final
originalMessage Map<String, List<MainMessage>>
@visibleForTesting, read / write, inherited
projectName String
Project name for the translation project The name of translation files will need to follow the following pattern {projectName}_{locale}.{format} eg: intl_en.arb [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addTemplateMessages(List<ReadableFile> dartFiles, {ExtractConfig config}) Future
Extract template messages from Intl classes inside dart files
inherited
generateTemplate(TranslationFormat<FileData> format) List<FileData>
Generate a translation template file in the desired format
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited