getPlatform method Null safety
- BuildContext context
override
The platform whose scroll physics should be implemented.
Defaults to the current platform.
Implementation
@override
TargetPlatform getPlatform(BuildContext context) => Theme.of(context).platform;