Skip to content

Instantly share code, notes, and snippets.

@adam-arold
Created January 11, 2019 23:37
Show Gist options
  • Select an option

  • Save adam-arold/5707c759008c494e01fded9052f5633f to your computer and use it in GitHub Desktop.

Select an option

Save adam-arold/5707c759008c494e01fded9052f5633f to your computer and use it in GitHub Desktop.
object ComponentFactory {
fun createComponent(
children: Iterable<Component>,
drawSurface: DrawSurface): Component {
return MyComponent(
children = children,
drawSurface = drawSurface)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment