return

myColor

return

null

}),

),

),

//...

Timeline

In stable release: 3.7

References

API documentation:

ThemeData.toggleableActiveColor

ColorScheme.secondary

Relevant issues:

Switch widget color doesn’t use ColorScheme

Relevant PRs:

Deprecate toggleableActiveColor.