OLD | NEW |
1 static TextTrackCue _create( | 1 static TextTrackCue _create( |
2 num startTime, num endTime, String text, | 2 num startTime, num endTime, String text, |
3 [String settings, bool pauseOnExit]) { | 3 [String settings, bool pauseOnExit]) { |
4 if (settings == null) { | 4 if (settings == null) { |
5 return JS('TextTrackCue', | 5 return JS('TextTrackCue', |
6 'new TextTrackCue(#,#,#)', | 6 'new TextTrackCue(#,#,#)', |
7 startTime, endTime, text); | 7 startTime, endTime, text); |
8 } | 8 } |
9 if (pauseOnExit == null) { | 9 if (pauseOnExit == null) { |
10 return JS('TextTrackCue', | 10 return JS('TextTrackCue', |
11 'new TextTrackCue(#,#,#,#)', | 11 'new TextTrackCue(#,#,#,#)', |
12 startTime, endTime, text, settings); | 12 startTime, endTime, text, settings); |
13 } | 13 } |
14 return JS('TextTrackCue', | 14 return JS('TextTrackCue', |
15 'new TextTrackCue(#,#,#,#,#)', | 15 'new TextTrackCue(#,#,#,#,#)', |
16 startTime, endTime, text, settings, pauseOnExit); | 16 startTime, endTime, text, settings, pauseOnExit); |
17 } | 17 } |
OLD | NEW |