public SwitchState(string title, SwitchCallback onChanged, bool initialState) { _title = title; _onChanged = onChanged; _isActive = initialState; }
public StateTile(string title, SwitchCallback onChanged = null, bool initialState = false) { _title = title; _onChanged = onChanged; _initialState = initialState; }