setCyclicRefreshPercent method
Replace cyclicRefreshPercent at runtime. Takes effect on the
next inter frame. v must be in [0, 100]. The internal raster
cursor is preserved, so the refresh pattern continues from where
it was -- raising the percentage just enlarges the per-frame
stripe; lowering it shrinks it; setting 0 stops cyclic refresh
without disturbing the cursor.
Implementation
void setCyclicRefreshPercent(int v) {
if (v < 0 || v > 100) {
throw ArgumentError(
'setCyclicRefreshPercent: v must be in [0,100] (got $v)');
}
_cyclicRefreshPercent = v;
}