SdlxHapticDirection.fromRef constructor

SdlxHapticDirection.fromRef(
  1. SdlHapticDirection ref
)

Implementation

factory SdlxHapticDirection.fromRef(SdlHapticDirection ref) {
  final dirList = List<int>.generate(3, (i) => ref.dir[i]);
  return SdlxHapticDirection(type: ref.type, dir: List.unmodifiable(dirList));
}