TaskProgress constructor

TaskProgress([
  1. TaskProgressPlatformInterface? platform
])

Creates a new TaskProgress instance.

platform is the platform-specific implementation to use. If not provided, a default implementation will be used.

Implementation

TaskProgress([TaskProgressPlatformInterface? platform])
    : _platform = platform ?? MethodChannelTaskProgress();