Coder Social home page Coder Social logo

Comments (6)

aswinmohanme avatar aswinmohanme commented on July 3, 2024

Here is my generated 'g.part'

// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'task.dart';

// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************

class TaskAdapter extends TypeAdapter<Task> {
  Task read(BinaryReader reader) {
    var obj = Task();
    var numOfFields = reader.readByte();
    for (var i = 0; i < numOfFields; i++) {
      switch (reader.readByte()) {
        case 0:
          obj.title = reader.readString();
          break;
        case 1:
          obj.done = reader.readBool();
          break;
        case 2:
          obj.id = reader.readInt();
          break;
      }
    }
    return obj;
  }

  void write(BinaryWriter writer, Task obj) {
    writer.writeByte(3);
    writer.writeByte(0);
    writer.write(obj.title);
    writer.writeByte(1);
    writer.write(obj.done);
    writer.writeByte(2);
    writer.write(obj.id);
  }
}

from hive.

simc avatar simc commented on July 3, 2024

Thanks, I'll investigate that.

from hive.

simc avatar simc commented on July 3, 2024

I published a new version of hive_generator which should solve your problem. Please reopen the issue if it still doesn't work...

from hive.

sh0umik avatar sh0umik commented on July 3, 2024

I am getting the same error

from hive.

simc avatar simc commented on July 3, 2024

I am getting the same error

Please open another issue with details...

from hive.

shafi49 avatar shafi49 commented on July 3, 2024

I am getting the same error

Please open another issue with details...

I was getting the same error while opening a box with 327 custom objects. Struggling for a while. Suddenly it disappeared with the same code. No clue what is happening here!

from hive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.