defaultDiffInfo property
DiffInfo
get
defaultDiffInfo
Implementation
DiffInfo get defaultDiffInfo {
if (customDiffInfo != null) {
return customDiffInfo!;
} else {
if (platformWrapper.isMacOS) {
return switch (ide) {
ComparatorIDE.vsCode => MacDiffTools.visualStudioCode,
ComparatorIDE.studio => MacDiffTools.androidStudio,
};
} else if (platformWrapper.isWindows) {
return switch (ide) {
ComparatorIDE.vsCode => WindowsDiffTools.visualStudioCode,
ComparatorIDE.studio => WindowsDiffTools.androidStudio,
};
} else if (platformWrapper.isLinux) {
return switch (ide) {
ComparatorIDE.vsCode => LinuxDiffTools.visualStudioCode,
ComparatorIDE.studio => LinuxDiffTools.androidStudio,
};
}
}
throw NoDiffToolException(
message:
'Diff tool is not supported on this platform. Please add customDiffInfo.',
stackTrace: StackTrace.current,
);
}