storedRegion

fun storedRegion(name: String, minSize: Provider<Int>, maxSize: Provider<Int>, defaultSize: Int, createRegion: (Int) -> Region): DynamicRegion

Creates a DynamicRegion with the size stored under name or defaultSize if it doesn't exist, using createRegion. The minSize and maxSize properties are not serialized and will be applied every time.