package com.adealink.weparty.commonui.drawabletoolbox

import android.graphics.drawable.Drawable

abstract class DrawableWrapperBuilder<T: DrawableWrapperBuilder<T>> {

    protected var drawable: Drawable? = null

    @Suppress("UNCHECKED_CAST")
    fun drawable(drawable: Drawable): T = apply { this.drawable = drawable } as T

    abstract fun build(): Drawable
}