You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
The apply method optionally takes a high-order function as a argument. This serves as a callback that will be triggered once Colorful has finished it's theme changes
However, ThemeEditor#apply() infers a @nonnull annotation on both of its arguments.
If this is to match the readme, the callback should be optional, and therefore must have a null check before being called.
I believe this will also make things easier for non-Kotlin users to make use of.
Thanks
The text was updated successfully, but these errors were encountered:
The Readme states:
However,
ThemeEditor#apply()
infers a @nonnull annotation on both of its arguments.If this is to match the readme, the callback should be optional, and therefore must have a null check before being called.
I believe this will also make things easier for non-Kotlin users to make use of.
Thanks
The text was updated successfully, but these errors were encountered: