getLockStateIcon method
Implementation
Widget getLockStateIcon(LockProvider lockProvider) {
return (lockProvider.isBusy)
? Center(child: CircularProgressIndicator())
: DeviceItemIcon.buildLockUnlockIcon(
lockProvider.getIsLockedState,
WidgetStyleConstants.defaultDeviceWidgetSize,
(lockProvider.getIsLockedState)
? WidgetStyleConstants.deviceDetailIconColorActive
: WidgetStyleConstants.deviceDetailIconColorInactive,
);
}