This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SomeThing { | |
final String value1; | |
final String? value2; | |
SomeThing({ | |
this.value1 = 'first value', | |
this.value2, | |
}); | |
SomeThing copyWith({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Generated.xcconfig" | |
#include "Defineexample-defaults.xcconfig" | |
#include "Defineexample.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dartEnvironmentVariables = [ | |
DEFINEEXAMPLE_APP_NAME: 'awesomeApp', | |
DEFINEEXAMPLE_APP_SUFFIX: null | |
]; | |
if (project.hasProperty('dart-defines')) { | |
dartEnvironmentVariables = dartEnvironmentVariables + project.property('dart-defines') | |
.split(',') | |
.collectEntries { entry -> | |
def pair = entry.split('=') | |
[(pair.first()): pair.last()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EnvironmentConfig { | |
static const APP_NAME = String.fromEnvironment( | |
'DEFINEEXAMPLE_APP_NAME', | |
defaultValue: 'awesomeApp' | |
); | |
static const APP_SUFFIX = String.fromEnvironment( | |
'DEFINEEXAMPLE_APP_SUFFIX' | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EnvironmentConfig { | |
static const SOME_VAR = String.fromEnvironment('SOME_VAR'); | |
static const OTHER_VAR = String.fromEnvironment('OTHER_VAR'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClientCriteria<I> { | |
final ClientCriteriaEnum criteria; | |
final ComparatorEnum comparator; | |
final I value; | |
ClientCriteria( | |
this.criteria, | |
this.value, | |
[this.comparator = ComparatorEnum.EQUALS] | |
); |