toProperties method
Implementation
List<String> toProperties({required bool isFlutter}) {
final List<String> props = [];
final String Function(String, String) buildFn =
isFlutter ? _buildDartDefine : _buildDefine;
if (hasGeneralSearchTerm) {
props.add(
buildFn(
_FilterSettingProps.generalSearchTerm,
generalSearchTerm!,
),
);
}
if (hasTestFilterTerm) {
props.add(
buildFn(_FilterSettingProps.testFilterTerm, testFilterTerm!),
);
}
if (hasTestSearchFor) {
props.add(buildFn(_FilterSettingProps.testSearchFor, testSearchFor!));
}
if (hasGroupFilterTerm) {
props.add(
buildFn(_FilterSettingProps.groupFilterTerm, groupFilterTerm!),
);
}
if (hasGroupSearchFor) {
props.add(
buildFn(_FilterSettingProps.groupSearchFor, groupSearchFor!),
);
}
if (hasTestFilterTerm) {
props.add(
buildFn(_FilterSettingProps.testFilterTerm, testFilterTerm!),
);
}
if (hasTestRunnerSearchFor) {
props.add(
buildFn(
_FilterSettingProps.testRunnerSearchFor,
testRunnerSearchFor!,
),
);
}
return props;
}