According to the docs, we can disable the FAB by setting null to its onClick:
onClick - will be called when user clicked on this FAB. The FAB will be disabled when it is null.
When I tried it I stumbled across that the onClick parameter is not nullable,
So, how to disable the FAB?

Currently (
1.x.y) theFloatingActionButtondoesn't support theenabledproperty.As workaround you can use a
Buttonwith aCircleShape.If you want to use a
FloatingActionButtonyou can do something like:with: