본문으로 건너뛰기

DiffOptions

옵션타입기본값
inline'none' | 'word' | 'character''word'
whitespace'exact' | 'trailing' | 'surrounding' | 'amount' | 'all''exact'
ignoreCasebooleanfalse
inlineThresholdnumber0.3
ignorereadonly RegExp[][]
maxCostnumber5000

DIFFINE_DEFAULTS가 이 표를 값으로 담고 있습니다.

옵션타입기본값
inlineDiffInlineModeDiffInlineMode.word
whitespaceDiffWhitespaceDiffWhitespace.exact
ignoreCaseboolfalse
inlineThresholddouble0.3
ignoreList<RegExp><RegExp>[]
maxCostint5000

DiffInlineModenone, word, character이고 DiffWhitespaceexact, trailing, surrounding, amount, all입니다. kDiffineDefaults가 이 표를 값으로 담고 있고, 옵션 하나만 바꿀 때는 copyWith를 쓰면 됩니다.

Released under the MIT License