Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error: Undefined name 'csvCodec'. (undefined_identifier ) #28

Closed
Sacchid opened this issue Apr 4, 2019 · 1 comment
Closed

Comments

@Sacchid
Copy link

Sacchid commented Apr 4, 2019

Getting error -
error: Undefined name 'csvCodec'. (undefined_identifier at [easy_csv] example\exa.dart:10)

I implemented decoder example from dart csv package like -

import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:csv/csv.dart';

main() async {
  final input = new File('foo.csv').openRead();
  final fields =
      await input.transform(utf8.decoder).transform(csvCodec.decoder).toList();
}
@close2
Copy link
Owner

close2 commented Apr 5, 2019

With dart2 csv was no longer able to be a codec.

I forgot to remove the corresponding documentation.

@close2 close2 closed this as completed in 6f592ad Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants