apply method
非网络 source 原样返回;否则 URI 换签名 URL,headers 透传。
Implementation
@override
Future<NiumaDataSource> apply(NiumaDataSource input) async {
if (input.type != NiumaSourceType.network) return input;
final signedUrl = await _signer(input.uri);
return NiumaDataSource.network(signedUrl, headers: input.headers);
}