LauncherName class

Writes the launcher_name section of pubspec.yaml as the localized app name on Android (values-<lang>/strings.xml) and iOS (<lang>.lproj/InfoPlist.strings). The default entry is the name for languages without their own entry.

Output matches launcher_name 1.0.2 byte for byte, except that names are escaped so characters such as ' no longer break the build.

Constructors

LauncherName(Directory projectDirectory)

Properties

hashCode → int
The hash code for this object.
no setterinherited
projectDirectory → Directory
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(Map<String, String> namesByLanguage) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

escapeAndroidString(String name) → String
Escapes name for an Android string resource, where ', ", \, & and < break aapt2 and a leading @ or ? reads as a reference.
escapeIosString(String name) → String
Escapes name for a value in an iOS .strings file.
readNamesByLanguage(String pubspecSource) → Map<String, String>

Constants

defaultLanguageKey → const String