SwiftstructTeaUI
StateCommandContextValue
struct TeaUI.StateCommandContextValue
Members 6
- field
let defaultValue: C? - field
let valueBlock: (A, B) -> C?+0x0 - func
value(for: A?, context: B?) -> C? - init
init(default: A, block: (A, B?) -> C?) -> TeaUI.StateCommandContextValue<A, B, C> - init
TeaUI.StateCommandContextValue< where A == Bool>.init(off: C, on: C) -> TeaUI.StateCommandContextValue<Bool, B, C> - init
TeaUI.StateCommandContextValue< where A == Bool>.init(C) -> TeaUI.StateCommandContextValue<Bool, B, C>
Header
struct StateCommandContextValue<A, B, C> where A: TeaUI.CommandStateType { let valueBlock: (A, B) -> C? let defaultValue: C? init(default: A, block: @escaping (A, B?) -> C?) func value(for: A?, context: B?) -> C? }